WheelPickerState

class WheelPickerState(val initialIndex: Int = 0)

WheelPicker의 상태를 관리하는 클래스. State class that manages the state of WheelPicker.

Parameters

initialIndex

초기 선택 인덱스. 기본값은 0. Initial selected index. Defaults to 0.

Constructors

Link copied to clipboard
constructor(initialIndex: Int = 0)

Properties

Link copied to clipboard

현재 선택된 아이템의 실제 인덱스. The actual index of the currently selected item.

Link copied to clipboard
Link copied to clipboard

현재 스크롤이 진행 중인지 여부. Whether scrolling is currently in progress.

Functions

Link copied to clipboard
suspend fun animateScrollToIndex(index: Int)

애니메이션과 함께 해당 인덱스로 이동합니다. Animates scrolling to the given index.

Link copied to clipboard
suspend fun scrollToIndex(index: Int)

애니메이션 없이 즉시 해당 인덱스로 이동합니다. Immediately scrolls to the given index without animation.