Package-level declarations
Types
Checks whether or not we can retain, usually derived from the current composable context.
Indicates that the annotated retained API is delicate and should be used carefully.
A no-op RetainedStateRegistry. Should generally only be used for testing and previews.
Allows components to save and restore their state using the onRetainNonConfigurationInstance
mechanism.
Interface that allows RetainedStateRegistry to unwrap any values held underneath.
Provides a retained value to a RetainedStateRegistry.
Provides a retained value to a RetainedStateRegistry.
Provides a retained value to a RetainedStateRegistry.
Provides a retained value to a RetainedStateRegistry.
Provides a retained value to a RetainedStateRegistry.
Provides a retained value to a RetainedStateRegistry.
Properties
CompositionLocal with a current RetainedStateRegistry instance.
Functions
Collects values from this StateFlow and represents its latest value via a retained State. The StateFlow.value is used as an initial value. Every time there would be new value posted into the StateFlow the returned State will be updated causing recomposition of every State.value usage.
Collects values from this Flow and represents its latest value via retained State. Every time there would be new value posted into the Flow the returned State will be updated causing recomposition of every State.value usage.
Provides a RetainedStateRegistry.
Provides a RetainedStateRegistry.
On Android, we retain only if the activity is changing configurations.
Checks whether or not we can retain in the current composable context.
Checks whether or not we can retain in the current composable context.
Checks whether or not we can retain in the current composable context.
Checks whether or not we can retain in the current composable context.
Remember the value produced by init.
A simple proxy to rememberRetained that uses the default autoSaver for stateSaver and a more explicit name.
A simple proxy to rememberRetained that uses the default autoSaver for saver and a more explicit name.
Creates RetainedStateRegistry.