androidx.preference

The Preference library allows you to build interactive settings screens, without needing to handle interacting with device storage or managing the user interface.

Developer Guides

For information about building a settings screen using the AndroidX Preference library, see Settings.

Interfaces

DialogPreference.TargetFragment Interface for PreferenceFragmentCompats to implement to allow DialogPreferences to find the preference that launched the dialog. 
EditTextPreference.OnBindEditTextListener Interface definition for a callback to be invoked when the corresponding dialog view for this preference is bound. 
Preference.OnPreferenceChangeListener Interface definition for a callback to be invoked when the value of this Preference has been changed by the user and is about to be set and/or persisted. 
Preference.OnPreferenceClickListener Interface definition for a callback to be invoked when a Preference is clicked. 
Preference.SummaryProvider<T extends Preference> Interface definition for a callback to be invoked when the summary of this Preference is requested (typically when this preference is added to the hierarchy or its value is updated). 
PreferenceFragment.OnPreferenceDisplayDialogCallback Interface that the fragment's containing activity should implement to be able to process preference items that wish to display a dialog. 
PreferenceFragment.OnPreferenceStartFragmentCallback Interface that the fragment's containing activity should implement to be able to process preference items that wish to switch to a specified fragment. 
PreferenceFragment.OnPreferenceStartScreenCallback Interface that the fragment's containing activity should implement to be able to process preference items that wish to switch to a new screen of preferences. 
PreferenceFragmentCompat.OnPreferenceDisplayDialogCallback Interface that the fragment's containing activity should implement to be able to process preference items that wish to display a dialog. 
PreferenceFragmentCompat.OnPreferenceStartFragmentCallback Interface that the fragment's containing activity should implement to be able to process preference items that wish to switch to a specified fragment. 
PreferenceFragmentCompat.OnPreferenceStartScreenCallback Interface that the fragment's containing activity should implement to be able to process preference items that wish to switch to a new screen of preferences. 
PreferenceGroup.PreferencePositionCallback Interface for PreferenceGroup adapters to implement so that PreferenceFragmentCompat.scrollToPreference(String) and PreferenceFragmentCompat.scrollToPreference(Preference) can determine the correct scroll position to request. 
PreferenceManager.OnDisplayPreferenceDialogListener Interface definition for a class that will be called when a Preference requests to display a dialog. 
PreferenceManager.OnNavigateToScreenListener Interface definition for a class that will be called when a PreferenceScreen requests navigation. 
PreferenceManager.OnPreferenceTreeClickListener Interface definition for a callback to be invoked when a Preference in the hierarchy rooted at this PreferenceScreen is clicked. 

Classes

CheckBoxPreference A Preference