Package-level declarations

Functions

Link copied to clipboard
inline fun <T : S, S : MVIState, I : MVIIntent, A : MVIAction> StoreBuilder<S, I, A>.keepState(keeper: StateKeeper, serializer: KSerializer<T>, key: String = serializer.descriptor.serialName, name: String? = "KeepStatePlugin")

Install a new keepStatePlugin

Link copied to clipboard
inline fun <T : S, S : MVIState, I : MVIIntent, A : MVIAction> keepStatePlugin(keeper: StateKeeper, serializer: KSerializer<T>, key: String = serializer.descriptor.serialName, name: String? = "KeepStatePlugin"): StorePlugin<S, I, A>

Keep the store's state using provided StateKeeper. Store is restored in StorePlugin.onStart.