WheelPickerState

Manages a wheel picker’s state.

Properties

Link copied to clipboard
var index: Int

The index of the currently selected item.

Link copied to clipboard
Link copied to clipboard

The slot height: the height of the tallest item or that of the window, whichever is greater.

Link copied to clipboard

The scroll value, based on the range of item indexes.

Functions

Link copied to clipboard
suspend fun animateScrollTo(index: Int, scrollPriority: MutatePriority = MutatePriority.Default)
Link copied to clipboard
suspend fun scrollTo(value: Float, scrollPriority: MutatePriority = MutatePriority.Default)
suspend fun scrollTo(index: Int, scrollPriority: MutatePriority = MutatePriority.Default)