//reactivestate-core/com.ensody.reactivestate/StateFlowStore
StateFlowStore¶
interface StateFlowStore
Base interface for a temporary observable key-value store.
This is useful for multiplatform projects and also for abstracting away SavedStateHandle
, e.g. so you can write tests without Robolectric.
Inheritors¶
InMemoryStateFlowStore |
NamespacedStateFlowStore |
Functions¶
Name | Summary |
---|---|
contains | [common] abstract operator fun contains(key: String): Boolean |
getData | [common] abstract fun <T> getData(key: String, default: T): MutableValueFlow<T> |
getData | [common] fun <T> StateFlowStore.getData(default: T): ReadOnlyProperty<Any?, MutableValueFlow<T>> For use with by delegation. Returns the StateFlowStore entry for the key that equals the property name. |