Package 

Interface PageNavigationEventListener

    • Method Summary

      Modifier and Type Method Description
      abstract Unit onPageChanged(Integer newPage, Integer pageCount) Called when the user swipes to change pages.
      abstract Unit onPageScrolled(Integer page, Float positionOffset) Called on every move while scrolling.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onPageChanged

        @MainThread() abstract Unit onPageChanged(Integer newPage, Integer pageCount)

        Called when the user swipes to change pages.

        Parameters:
        newPage - The new page being displayed, starting from 0.
        pageCount - The total number of pages in the document.
      • onPageScrolled

        @MainThread() abstract Unit onPageScrolled(Integer page, Float positionOffset)

        Called on every move while scrolling.

        Parameters:
        page - The current page index.
        positionOffset - The offset of the current scroll position within the current page.