KmpWheelPickerState

data class KmpWheelPickerState(val initiallySelectedItemIndex: Int = 0, val isInfinite: Boolean = false) : ScrollableState

KmpWheelPickerState The state for KmpWheelPicker

Constructors

Link copied to clipboard
constructor(initiallySelectedItemIndex: Int = 0, isInfinite: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val canScrollBackward: Boolean
Link copied to clipboard
open override val canScrollForward: Boolean
Link copied to clipboard
Link copied to clipboard
open override val isScrollInProgress: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun animateScrollToItem(index: Int, itemCount: Int? = null)

Animates scrolling to the given index. If the wheel picker is infinite, passing the itemCount will allow the picker to scroll to the nearest matching index

Link copied to clipboard
open override fun dispatchRawDelta(delta: Float): Float
Link copied to clipboard
suspend fun resetToIndex(index: Int, itemCount: Int? = null)

resetToIndex Resets internal picker state to the given index and animate scrolls the picker to the correct value

Link copied to clipboard
open suspend override fun scroll(scrollPriority: MutatePriority, block: suspend ScrollScope.() -> Unit)
Link copied to clipboard
suspend fun scrollToItem(index: Int)