Package-level declarations

Types

Link copied to clipboard
interface DataStore

Simple interface for a data persistence "engine" that can read and write to disk

Link copied to clipboard
typealias StoreObserver = (key: String, value: String?) -> Unit

Functions

Link copied to clipboard
fun DataStore.fetchOrCreate(key: String, fallback: () -> String): String

Fetch a key from store, or generate and store a new value if not found