Package-level declarations

Types

Link copied to clipboard
sealed interface SaveBehavior

An interface that specifies when saveStatePlugin is going to save the store's state. Multiple variants can be used, but there are restrictions on how you can combine them (see saveStatePlugin documentation for more details).

Link copied to clipboard
interface Saver<T>

A Saver is an object that specifies how to save the state of the saveStatePlugin. See docs for specific functions to learn how to override them.

Properties

Link copied to clipboard
val NullRecover: suspend (Exception) -> Nothing?

A Saver recovery function that will simply return null value and no state will be saved/restored. Existing state will be cleared.

Link copied to clipboard
val ThrowRecover: suspend (e: Exception) -> Nothing?

A Saver recovery function that will throw on any exception when saving and restoring state.