NoOpRetainedStateRegistry
A no-op RetainedStateRegistry. Should generally only be used for testing and previews.
Functions
Link copied to clipboard
Returns the restored value for the given key. Once being restored the value is cleared, so you can't restore the same key twice.
Link copied to clipboard
Releases all currently unconsumed values. Useful as a GC mechanism for the registry.
Link copied to clipboard
open override fun registerValue(key: String, valueProvider: RetainedValueProvider): RetainedStateRegistry.Entry
Registers the value provider.