getPageLabel

abstract fun getPageLabel(@IntRange(from = 0) pageIndex: Int, substituteWithPlainLabel: Boolean): String

Gets the page label.

Return

The page label of the page requests or null if not found.

Parameters

pageIndex

The index of the page.

substituteWithPlainLabel

If true, and no page label exists for the given page, returns a string with the page number.