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) },
            )
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: