onPageChanged

abstract fun onPageChanged(@NonNull verticalScrollBar: VerticalScrollBar, @IntRange(from = 0) pageIndex: Int)

Called whenever the used dragged the scrollbar indicator to a different page.

Parameters

verticalScrollBar

The VerticalScrollBar that triggered the event.

pageIndex

The 0-based page index that was selected.