OptionalBooleanSetting

abstract class OptionalBooleanSetting : OptionalSetting

Represents an optional setting that can be either enabled or disabled.

Functions

isAvailable
Link copied to clipboard
abstract fun isAvailable(): Boolean
Tells whether the setting is currently available.
isEnabled
Link copied to clipboard
abstract fun isEnabled(): Boolean
Tells whether the setting is currently enabled, if isAvailable returns true, otherwise returned value is undefined.
isUpdating
Link copied to clipboard
abstract fun isUpdating(): Boolean
Tells whether the setting is updating.
setEnabled
Link copied to clipboard
abstract fun setEnabled(enabled: Boolean)
Sets the setting value.
toggle
Link copied to clipboard
abstract fun toggle()
Toggles the current setting value, i.e.