Vertical Pager
Emits a vertical pager with one keyed lazy session per page.
Settled callback and pagerState semantics match HorizontalPager. Keyboard focus-follow may request the focused descendant page into view without transferring page-session identity.
Receiver
active tree builder receiving the pager node
Parameters
controlled page selected for this render
callback receiving a newly settled page index
optional caller-owned observation and command state
native adjacent-page residency limit, or -1 for the platform default
whether direct user paging is accepted
native page-presentation reuse hints
native page-mutation animation hints
whether keyboard focus may bring a descendant page into view
optional stable sibling identity used during reconciliation
ordered configuration applied to the pager root
explicitly keyed delayed page declarations
Throws
for duplicate page keys or an invalid offscreen limit
Samples
val tree = buildVNodeTree {
HorizontalPager(currentPage = 0, onPageChanged = {}) {
Page("account", 4, contentType = "account-page") {
Text("Account")
}
}
TabRow(selectedIndex = 0, onTabSelected = {}) {
Tab("overview", 2) { selected ->
Text(if (selected) "Overview selected" else "Overview")
}
}
}
val page = (tree.first().spec as HorizontalPagerNodeProps).pages.single()
check(page.key == "account")
check(page.contentRevision == 4)
check(tree.last().children.single().key == "overview")