SaveableStateRegistry

Function

Common
public fun SaveableStateRegistry(
    restoredValues: Map<String, List<Any?>>?,
    canBeSaved: (Any) -> Boolean,
): SaveableStateRegistry

Creates SaveableStateRegistry.

Parameters

restoredValuesThe map of the restored values
canBeSavedFunction which returns true if the given value can be saved by the registry