TwoStatePreference
Common base class for preferences that have two selectable states, save a boolean value, and may have dependent preferences that are enabled/disabled based on the current state.
Inheritors
Constructors
Functions
Link copied to clipboard
Returns whether dependents are disabled when this preference is on (
true
) or when this preference is off (false
).Link copied to clipboard
Returns the summary to be shown when unchecked.
Link copied to clipboard
Returns the summary to be shown when checked.
Link copied to clipboard
Sets the checked state and saves it.
Link copied to clipboard
Sets whether dependents are disabled when this preference is on (
true
) or when this preference is off (false
).Link copied to clipboard
Sets the summary to be shown when unchecked.
Link copied to clipboard
Sets the summary to be shown when checked.
Link copied to clipboard
Checks whether this preference's dependents should currently be disabled.