VerticalScrollBar

Provides a vertical scroll indicator that can be dragged to change pages.

Constructors

Link copied to clipboard
constructor(@NonNull context: Context)
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet)
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet, defStyleAttr: Int)

Types

Link copied to clipboard
Interface for a listener that is notified of scrollbar page change events.

Functions

Link copied to clipboard
Manually shows the scroll indicator, hiding it after some time.
Link copied to clipboard
fun onDocumentScrolled(currX: Int, currY: Int, maxX: Int, maxY: Int, extendX: Int, extendY: Int)
Called whenever the document in the fragment scrolled.
Link copied to clipboard
Called whenever the current scroll state of the document view has changed.
Link copied to clipboard
Link copied to clipboard
open fun setAutoHide(enable: Boolean)
This controls if the scrollbar can auto hide or stay visible all the time.
Link copied to clipboard
Sets the document that provides page count for this scrollbar.
Link copied to clipboard
Sets the OnPageChangeListener that will be notified of future page change events.
Link copied to clipboard
fun setScrollDirection(@NonNull pageScrollDirection: PageScrollDirection)
Sets the scroll direction that is configured on the PdfFragment.