Persistent Holder

data class PersistentHolder<T>(val state: State<T>, val save: SaveToPersistent<T>, val clear: HookClear)

The final return value of the persistence hook is a tuple like state,setState

Constructors

Link copied to clipboard
constructor(state: State<T>, save: SaveToPersistent<T>, clear: HookClear)

Properties

Link copied to clipboard
val clear: HookClear
Link copied to clipboard
val save: SaveToPersistent<T>
Link copied to clipboard
val state: State<T>

Functions

Link copied to clipboard
operator fun getValue(thisRef: Any?, property: KProperty<*>): T
Link copied to clipboard
operator fun setValue(thisRef: Any?, property: KProperty<*>, newValue: T)