SettingsModel

abstract class SettingsModel(val storage: Storage)

Constructors

Link copied to clipboard
constructor(storage: Storage)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
inline fun <T : Enum<*>> enumPref(default: T, entries: List<T>, key: String? = null, cache: Boolean = storage.cache): StorageSetting<T>

Delegate enum property

Link copied to clipboard
inline fun <T : Enum<*>> SettingsModel.enumPref(default: T, key: String? = null, cache: Boolean = storage.cache): StorageSetting<T>

Delegate enum property

Link copied to clipboard
fun onCreate(setting: StorageSetting<*>)
Link copied to clipboard