onDocumentScrolled

abstract fun onDocumentScrolled(currX: Int, currY: Int, maxX: Int, maxY: Int, extendX: Int, extendY: Int)

Called whenever the document in the fragment scrolled. Values are expressed in an arbitrary unit and may change with every call. Also maxX and maxY are not guaranteed to remain the same between two calls.

Parameters

currX

Current scroll amount X.

currY

Current scroll amount Y.

maxX

Maximum scroll amount of the X dimension.

maxY

Maximum scroll amount of the Y dimension.

extendX

Extend of the visible content in the X dimension.

extendY

Extend of the visible content in the Y dimension.


open fun onDocumentScrolled(@NonNull fragment: PdfFragment, currX: Int, currY: Int, maxX: Int, maxY: Int, extendX: Int, extendY: Int)

Deprecated

Since version 2024.3. Use onDocumentScrolled without PdfFragment.