PreferenceScreen
class PreferenceScreen : PreferenceGroup
kotlin.Any | |||
↳ | androidx.preference.Preference | ||
↳ | androidx.preference.PreferenceGroup | ||
↳ | androidx.preference.PreferenceScreen |
A top-level container that represents a settings screen. This is the root component of your Preference
hierarchy. A PreferenceFragmentCompat
points to an instance of this class to show the preferences. To instantiate this class, use PreferenceManager#createPreferenceScreen(Context)
.
Summary
Inherited constants | |||
---|---|---|---|
From class
Preference
|
Public methods | |
---|---|
Unit |
setShouldUseGeneratedIds(shouldUseGeneratedIds: Boolean) Set whether the adapter created for this screen should attempt to use the preference IDs generated by |
Boolean |
Protected methods | |
---|---|
Boolean | |
Unit |
onClick() |
Inherited functions | |||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class
PreferenceGroup
|
|||||||||||||||||||||||||||||||||||||||||
From class Preference
|