Properties

Link copied to clipboard
abstract val keyName: String

DataStore key name

Link copied to clipboard
abstract val meta: SettingMeta?

UI metadata (null for @Persisted-only fields)

Link copied to clipboard
abstract val name: String

Property name in the data class

Functions

Link copied to clipboard
abstract fun get(model: T): V

Get value from model

Link copied to clipboard
abstract fun read(prefs: Preferences): V?

Read from preferences

Link copied to clipboard
abstract fun set(model: T, value: V): T

Set value in model (returns new model)

Link copied to clipboard
abstract fun write(prefs: MutablePreferences, value: V)

Write to preferences