DocumentScrollListener

Interface for listeners that can receive scrolling events of a PdfFragment. This class may be used to implement custom scroll indicators or scrollbar views.

See also

Inheritors

Functions

Link copied to clipboard
abstract fun onDocumentScrolled(@NonNull fragment: PdfFragment, currX: Int, currY: Int, maxX: Int, maxY: Int, extendX: Int, extendY: Int)
Called whenever the document in the fragment scrolled.
Link copied to clipboard
abstract fun onScrollStateChanged(@NonNull fragment: PdfFragment, @NonNull state: ScrollState)
Called whenever the current scroll state of the PdfFragment changed.