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
Link copied to clipboard
open fun getItemPosition(@NonNull object: Any): Int
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
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
Link copied to clipboard
open fun onHide()
Link copied to clipboard
open fun onPageScrolled(position: Int, positionOffset: Float, positionOffsetPixels: Int)
Link copied to clipboard
open fun onPageScrollStateChanged(state: Int)
Link copied to clipboard
open fun onPageSelected(position: Int)
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.