AtomSaveableStore

class AtomSaveableStore(savedState: Bundle? = null) : AtomStore, SavedStateRegistry.SavedStateProvider

A AtomStore implementation that saves and restores the state of Atoms.

Parameters

savedState

The saved state to be restored.

Constructors

Link copied to clipboard
constructor(savedState: Bundle? = null)

Types

Link copied to clipboard
class ManagedState<T>(atom: Atom<T>) : MutableState<T>

Functions

Link copied to clipboard
open override fun <T> get(atom: AtomRef<T>): T

Retrieves the value associated with the specified AtomRef reference key.

open override fun <T> get(atom: Atom<T>): T

Retrieves the value associated with the specified Atom reference key.

Link copied to clipboard
open override fun saveState(): Bundle
Link copied to clipboard
open override fun <T> set(atom: Atom<T>, value: T)

Set the value of an atom.