AtomSaver

interface AtomSaver<T>(source)

Interface for saving and restoring values to a SavedState.

Currently, this restoration feature is designed specifically for the Android Platform.

Parameters

T

The type of the value to be saved and restored.

Functions

Link copied to clipboard
abstract fun restore(state: SavedState): T?

Restores a value from a SavedState.

Link copied to clipboard
abstract fun save(state: SavedState, value: T)

Saves a value to a SavedState.