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.

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: