| com.pspdfkit.ui.navigation.PageNavigator |
Known Indirect Subclasses
|
Class responsible for managing current page and page navigation history in the PdfFragment.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract void |
beginNavigation()
Notifies the navigation manager that calls to
setPageIndex(int, boolean) should be added to
the navigation history until endNavigation() is called. | ||||||||||
| abstract void |
endNavigation()
Commits the page changes to the navigation history dropping everything but the very last one.
| ||||||||||
| abstract NavigationBackStack<NavigationItem<Integer>> |
getNavigationHistory()
Returns the navigation history owned by this manager.
| ||||||||||
| abstract int |
getPageCount()
Gets number of pages in the document.
| ||||||||||
| abstract int |
getPageIndex()
Get currently displayed document page.
| ||||||||||
| abstract void |
setPageIndex(int pageIndex, boolean animated)
Sets the | ||||||||||
| abstract void |
setPageIndex(int pageIndex)
Sets the | ||||||||||
Notifies the navigation manager that calls to setPageIndex(int, boolean) should be added to
the navigation history until endNavigation() is called.
Commits the page changes to the navigation history dropping everything but the very last one.
Returns the navigation history owned by this manager.
NavigationBackStack containing the entire navigation history.
Gets number of pages in the document.
-1 if document is null.
Get currently displayed document page.
-1 if document is null.
Sets the pageIndex to be displayed (0 is the first one). If animated is set to true,
the page jump will be animated. If false, the page will be shown immediately.
This method will throw an exception if pageIndex < 0 || pageIndex >= pageCount (as returned by getPageCount()).
| pageIndex | Target page which should be displayed. |
|---|---|
| animated | Set to true, if a transitioning animation should be performed. Otherwise to false.
|
Sets the pageIndex to be displayed (0 is the first one), using our default decision on animating,
which is to animate the transition if the page is next/before the current page, and not animate if further away.
For custom animation control , use setPageIndex(int, boolean).
This method will throw an exception if pageIndex < 0 || pageIndex >= pageCount (as returned by getPageCount()).
| pageIndex | Target page which should be displayed. |
|---|