OutlinePagerAdapter

A state pager adapter controlling the pager items (outline view and annotation list view) that saves and restores View states.

Functions

Link copied to clipboard
open fun getCount(): Int
Returns the number of visible items in the pager.
Link copied to clipboard
open fun getItemPosition(@NonNull object: Any): Int
Returns the position of an item in the adapter.
Link copied to clipboard
open fun getItemTabButtonId(position: Int): Int
Returns item tab button id.
Link copied to clipboard
open fun getPageTitle(position: Int): CharSequence
Returns the title of the page at the given position.
Link copied to clipboard
open fun getPositionOfItemWithTabButtonId(@IdRes tabButtonId: Int): Int
Returns the position of item with given tab button id.
Link copied to clipboard
Checks whether the document info list view is available as a tab.
Link copied to clipboard
Checks whether the outline list view should be available as a tab.
Link copied to clipboard
open fun onHide()
Called when the outline view is hidden.
Link copied to clipboard
open fun onPageScrolled(position: Int, positionOffset: Float, positionOffsetPixels: Int)
Called when the current page is scrolled.
Link copied to clipboard
open fun onPageScrollStateChanged(state: Int)
Called when the scroll state changes.
Link copied to clipboard
open fun onPageSelected(position: Int)
Called when a new page is selected.
Link copied to clipboard
open fun onShow()
Called when outline list gets shown.
Link copied to clipboard
Refresh items visibility in the adapter.
Link copied to clipboard
open fun setDocument(@Nullable document: PdfDocument, @Nullable configuration: PdfConfiguration, @NonNull onHideListener: OutlinePagerBaseView.OnHideListener)
Sets the document to the adapter.