OptionalRangePreferenceDelegate
class OptionalRangePreferenceDelegate<T : Comparable<T>>(getValue: () -> T?, getEffectiveValue: () -> T?, getIsEffective: () -> Boolean, updateValue: (T?) -> Unit, defaultValue: T, valueFormatter: (T) -> String, val supportedRange: ClosedRange<T>, progressionStrategy: ProgressionStrategy<T>) : PreferenceDelegate<T?> , OptionalRangePreference<T>
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
Format value in a way suitable for display, including unit if relevant.
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.