-
public interface TextSelectionHandlerHandler interface for text selection functionality. Implement this to provide custom text selection UI.
-
-
Method Summary
Modifier and Type Method Description abstract BooleanonLongPress(PointF point, Integer page)Called when long press is detected (potential selection start). abstract UnitonDrag(PointF point)Called when drag gesture is detected during selection. abstract UnitonRelease()Called when touch is released. abstract TextSelectiongetSelection()Get the current selection, if any. abstract UnitclearSelection()Clear the current selection. abstract BooleancopyToClipboard()Copy the selected text to clipboard. abstract UnitsetCallback(TextSelectionCallback callback)Set callback for selection events. -
-
Method Detail
-
onLongPress
abstract Boolean onLongPress(PointF point, Integer page)
Called when long press is detected (potential selection start).
- Parameters:
point- Touch point in page coordinatespage- Page index
-
onDrag
abstract Unit onDrag(PointF point)
Called when drag gesture is detected during selection.
- Parameters:
point- Current touch point
-
getSelection
abstract TextSelection getSelection()
Get the current selection, if any.
-
clearSelection
abstract Unit clearSelection()
Clear the current selection.
-
copyToClipboard
abstract Boolean copyToClipboard()
Copy the selected text to clipboard.
-
setCallback
abstract Unit setCallback(TextSelectionCallback callback)
Set callback for selection events.
-
-
-
-