setPageIndex

open fun setPageIndex(@IntRange(from = 0) pageIndex: Int)

Sets page to be displayed in the current document.

Parameters

pageIndex

Index of the target page (starting at 0).


open fun setPageIndex(@IntRange(from = 0) pageIndex: Int, animate: Boolean)

Sets page to be displayed in the current document.

Parameters

pageIndex

Index of the target page (starting at 0).

animate

true if the transition to the specified page should be animated, false otherwise.