selectPage

fun selectPage(index: Int): Boolean

Change the selected page by using its index.

Return

true if the page was successfully changed.

Parameters

index

Page number or -1 to deselect the current page.

fun selectPage(caption: String): Boolean

Change the selected page by using its caption.

Return

true if the page was successfully changed.

Parameters

caption

Caption of the page to select. A nonexistent name will deselect the current page.

private fun selectPage(page: TabbedPager.PageState): Boolean