Pager State
A state object that can be hoisted to control and observe scrolling for HorizontalPager.
In most cases, this will be created via rememberPagerState.
Parameters
current Page
the initial value for PagerState.currentPage
Constructors
Types
Functions
Link copied to clipboard
Animate (smooth scroll) to the given page to the middle of the viewport.
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun scroll(scrollPriority: MutatePriority, block: suspend ScrollScope.() -> Unit)
Content copied to clipboard
Link copied to clipboard
Instantly brings the item at page to the middle of the viewport.
Properties
Link copied to clipboard
The current offset from the start of currentPage, as a ratio of the page width.
Link copied to clipboard
InteractionSource that will be used to dispatch drag events when this list is being dragged. If you want to know whether the fling (or animated scroll) is in progress, use isScrollInProgress.