PreferenceDelegate
open class PreferenceDelegate<T>(getValue: () -> T?, getEffectiveValue: () -> T, getIsEffective: () -> Boolean, updateValue: (T?) -> Unit) : Preference<T>
Inheritors
Constructors
Properties
Functions
Link copied to clipboard
Unset the preference.
Link copied to clipboard
Returns a new preference with its boolean value flipped.
Link copied to clipboard
Toggle the preference value. A default value is taken as the initial one if the preference is currently unset.
Link copied to clipboard
Creates a new EnumPreference object wrapping the receiver with the provided supportedValues.