Java android.preference CheckBoxPreference fields, constructors, methods, implement or subclass

Example usage for Java android.preference CheckBoxPreference fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.preference CheckBoxPreference.

The text is from its open source code.

Subclass

android.preference.CheckBoxPreference has subclasses.
Click this link to see all its subclasses.

Constructor

Method

ContextgetContext()
Returns the android.content.Context of this Preference.
StringgetDependency()
Returns the key of the dependency on this Preference.
StringgetKey()
Gets the key for this Preference, which is also the key used for storing values into SharedPreferences or PreferenceDataStore .
OnPreferenceChangeListenergetOnPreferenceChangeListener()
Returns the callback to be invoked when this Preference is changed by the user (but before the internal state has been updated).
intgetOrder()
Gets the order of this Preference with respect to other Preference objects on the same level.
CharSequencegetSummary()
Returns the summary of this Preference.
CharSequencegetSummaryOff()
Returns the summary to be shown when unchecked.
CharSequencegetSummaryOn()
Returns the summary to be shown when checked.
CharSequencegetTitle()
Returns the title of this Preference.
booleanisChecked()
Returns the checked state.
booleanisEnabled()
Checks whether this Preference should be enabled in the list.
booleanisPersistent()
Checks whether this Preference is persistent.
voidsetChecked(boolean checked)
Sets the checked state and saves it to the SharedPreferences .
voidsetDefaultValue(Object defaultValue)
Sets the default value for this Preference, which will be set either if persistence is off or persistence is on and the preference is not found in the persistent storage.
voidsetDependency(String dependencyKey)
Sets the key of a Preference that this Preference will depend on.
voidsetDisableDependentsState(boolean disableDependentsState)
Sets whether dependents are disabled when this preference is on ( true ) or when this preference is off ( false ).
voidsetEnabled(boolean enabled)
Sets whether this Preference is enabled.
voidsetIcon(Drawable icon)
Sets the icon for this Preference with a Drawable.
voidsetKey(String key)
Sets the key for this Preference, which is used as a key to the SharedPreferences or PreferenceDataStore .
voidsetOnPreferenceChangeListener(OnPreferenceChangeListener onPreferenceChangeListener)
Sets the callback to be invoked when this Preference is changed by the user (but before the internal state has been updated).
voidsetOnPreferenceClickListener(OnPreferenceClickListener onPreferenceClickListener)
Sets the callback to be invoked when this Preference is clicked.
voidsetPersistent(boolean persistent)
Sets whether this Preference is persistent.
voidsetSummary(CharSequence summary)
Sets the summary for this Preference with a CharSequence.
voidsetTitle(CharSequence title)
Sets the title for this Preference with a CharSequence.