PreferenceManager
open class PreferenceManager
kotlin.Any | |
↳ | androidx.preference.PreferenceManager |
Used to help create Preference
hierarchies from activities or XML.
In most cases, clients should use PreferenceFragmentCompat#addPreferencesFromResource(int)
.
Summary
Nested classes | |
---|---|
abstract |
Interface definition for a class that will be called when a |
abstract |
Interface definition for a class that will be called when a |
abstract |
Interface definition for a callback to be invoked when a |
abstract |
Callback class to be used by the |
open |
A basic implementation of |
Constants | |
---|---|
static String |
Public methods | |
---|---|
open PreferenceScreen! |
createPreferenceScreen(context: Context!) |
open T? |
findPreference(@NonNull key: CharSequence) Finds a |
open Context! |
Returns the context. |
open static SharedPreferences! |
Gets a |
open PreferenceManager.OnDisplayPreferenceDialogListener! | |
open PreferenceManager.OnNavigateToScreenListener! |
Returns the |
open PreferenceManager.OnPreferenceTreeClickListener! | |
open PreferenceManager.PreferenceComparisonCallback! | |
open PreferenceDataStore? |
Returns the |
open PreferenceScreen! |
Returns the root of the preference hierarchy managed by this class. |
open SharedPreferences! |
Gets a |
open Int |
Returns the current mode of the |
open String! |
Returns the current name of the |
open Boolean |
Indicates if the storage location used internally by this class is the default provided by the hosting |
open Boolean |
Indicates if the storage location used internally by this class is backed by device-protected storage. |
open static Unit |
setDefaultValues(context: Context!, resId: Int, readAgain: Boolean) Sets the default values from an XML preference file by reading the values defined by each |
open static Unit |
Similar to |
open Unit |
setOnDisplayPreferenceDialogListener(onDisplayPreferenceDialogListener: PreferenceManager.OnDisplayPreferenceDialogListener!) |
open Unit |