🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

PickerGroupState

A state object that can be used to observe the selected Picker.

Source set: Android
public class PickerGroupState constructor(initiallySelectedIndex: Int = 0)

A state object that can be used to observe the selected Picker.

Parameters

initiallySelectedIndex the picker index that will be initially selected

Properties

selectedIndex

Source set: Android
public var selectedIndex: Int by mutableIntStateOf(initiallySelectedIndex)

The current selected Picker index.

Members

Companion

Source set: Android
public companion object

Properties

Saver

Source set: Android
public val Saver: Saver<PickerGroupState, Any> =
            listSaver<PickerGroupState, Any?>(
                save = { listOf(it.selectedIndex) },
                restore = { saved -> PickerGroupState(initiallySelectedIndex = saved[0] as Int) },
            )