-
- All Implemented Interfaces:
-
org.readium.r2.navigator.Navigator.Listener
public interface VisualNavigator.Listener implements Navigator.Listener
-
-
Method Summary
Modifier and Type Method Description BooleanshouldJumpToLink(Link link)Called when a link to an internal resource was clicked in the navigator. BooleanonTap(PointF point)BooleanonDragStart(PointF startPoint, PointF offset)BooleanonDragMove(PointF startPoint, PointF offset)BooleanonDragEnd(PointF startPoint, PointF offset)-
-
Method Detail
-
shouldJumpToLink
@Deprecated(message = Use `HyperlinkNavigator.Listener.shouldFollowInternalLink` instead, replaceWith = @ReplaceWith(imports = {}, expression = shouldFollowInternalLink(link)), level = DeprecationLevel.ERROR) Boolean shouldJumpToLink(Link link)
Called when a link to an internal resource was clicked in the navigator.
You can use this callback to perform custom navigation like opening a new window or other operations.
By returning false the navigator wont try to open the link itself and it is up to the calling app to decide how to display the link.
-
onTap
@Deprecated(message = Use `addInputListener` instead, level = DeprecationLevel.ERROR) Boolean onTap(PointF point)
-
onDragStart
@Deprecated(message = Use `addInputListener` instead, level = DeprecationLevel.ERROR) Boolean onDragStart(PointF startPoint, PointF offset)
-
onDragMove
@Deprecated(message = Use `addInputListener` instead, level = DeprecationLevel.ERROR) Boolean onDragMove(PointF startPoint, PointF offset)
-
onDragEnd
@Deprecated(message = Use `addInputListener` instead, level = DeprecationLevel.ERROR) Boolean onDragEnd(PointF startPoint, PointF offset)
-
-
-
-