SkyEpub SDK for Android 7
 All Classes Functions Variables
Public Member Functions | List of all members
com.skytree.epub.SelectionListener Interface Reference

Public Member Functions

void selectionStarted (Highlight highlight, Rect startRect, Rect endRect)
 
void selectionChanged (Highlight highlight, Rect startRect, Rect endRect)
 
void selectionEnded (Highlight highlight, Rect startRect, Rect endRect)
 
void selectionCancelled ()
 

Detailed Description

SelectionListener is the interface to handle for text selection. startRect is the first Rectangle for the selected area. lastRect is the last Rectagle for the selected area. highlight is the Highlight object holding the information about selected area.

Member Function Documentation

void com.skytree.epub.SelectionListener.selectionCancelled ( )

called when selection is cancelled.

void com.skytree.epub.SelectionListener.selectionChanged ( Highlight  highlight,
Rect  startRect,
Rect  endRect 
)

called when selection is ended.

Parameters
highlightHihglight object which holds information about selected area.
startRectRect object which is the first Rectangle of the highlight object
endRectRect object which is the last Rectangle of the highlight object
void com.skytree.epub.SelectionListener.selectionEnded ( Highlight  highlight,
Rect  startRect,
Rect  endRect 
)

called when selection is ended.

Parameters
highlightHihglight object which holds information about selected area.
startRectRect object which is the first Rectangle of the highlight object
endRectRect object which is the last Rectangle of the highlight object
void com.skytree.epub.SelectionListener.selectionStarted ( Highlight  highlight,
Rect  startRect,
Rect  endRect 
)

called when selection is ended.

Parameters
highlightHihglight object which holds information about selected area.
startRectRect object which is the first Rectangle of the highlight object
endRectRect object which is the last Rectangle of the highlight object

The documentation for this interface was generated from the following file: