Package 

Interface Navigator.Listener

    • Method Summary

      Modifier and Type Method Description
      Unit onResourceLoadFailed(Url href, ReadError error) Called when a publication resource failed to be loaded.
      Unit onJumpToLocator(Locator locator) Called when the navigator jumps to an explicit location, which might break the linear reading progression.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.