-
public interface Navigator.Listener
-
-
Method Summary
Modifier and Type Method Description UnitonResourceLoadFailed(Url href, ReadError error)Called when a publication resource failed to be loaded. UnitonJumpToLocator(Locator locator)Called when the navigator jumps to an explicit location, which might break the linear reading progression. -
-
Method Detail
-
onResourceLoadFailed
Unit onResourceLoadFailed(Url href, ReadError error)
Called when a publication resource failed to be loaded.
-
onJumpToLocator
Unit onJumpToLocator(Locator locator)
Called when the navigator jumps to an explicit location, which might break the linear reading progression.
For example, it is called when clicking on internal links or programmatically calling go, but not when turning pages.
You can use this callback to implement a navigation history by differentiating between continuous and discontinuous moves.
-
-
-
-