🌈 Create new beautiful Compose Gradients with our new wesite ->
Composable Function

rememberSelectionState

Create and remember a SelectionState.

rememberSelectionState

Source set: Common
@Composable
public fun rememberSelectionState(): SelectionState

Create and remember a SelectionState. The state is remembered using rememberSaveable and will be saved and restored with the composition.

If you need to store a SelectionState in another object, use the SelectionState.Saver object to manually save and restore the state.

Content updated: