onPageChanged

open fun onPageChanged(@NonNull document: PdfDocument, @IntRange(from = 0) pageIndex: Int)

Called when user scrolled to a new page.

Parameters

document

Currently opened document.

pageIndex

Page number of new page.