PreferenceGroup
abstract class PreferenceGroup : Preference
kotlin.Any | ||
↳ | androidx.preference.Preference | |
↳ | androidx.preference.PreferenceGroup |
A container for multiple Preference
s. It is a base class for preference objects that are parents, such as PreferenceCategory
and PreferenceScreen
.
Summary
Nested classes | |
---|---|
abstract |
Interface for PreferenceGroup adapters to implement so that |
Inherited constants | |
---|---|
Public constructors | |
---|---|
<init>(context: Context!, attrs: AttributeSet!, defStyleAttr: Int, defStyleRes: Int) |
|
<init>(context: Context!, attrs: AttributeSet!, defStyleAttr: Int) |
|
<init>(context: Context!, attrs: AttributeSet!) |
Public methods | |
---|---|
open Unit |
addItemFromInflater(preference: Preference!) Called by the inflater to add an item to this group. |
open Boolean |
addPreference(preference: Preference!) Adds a |
open T? |
findPreference(@NonNull key: CharSequence) Finds a |
open Int |
Gets the maximal number of children that are initially shown. |
open Preference! |
getPreference(index: Int) Returns the |
open Int |
Returns the number of children |
open Boolean |
Whether this group is ordering preferences in the order they are added. |
open Unit |
notifyDependencyChange(disableDependents: Boolean) |
open Unit | |
open Unit | |
open Unit |
Removes all |
open Boolean |
removePreference(preference: Preference!) Removes a |
open Boolean |
removePreferenceRecursively(@NonNull key: CharSequence) Recursively finds and removes a |
open Unit |
setInitialExpandedChildrenCount(expandedCount: Int) Sets the maximal number of children that are shown when the preference group is launched where the rest of the children will be hidden. |
open Unit |
setOrderingAsAdded(orderingAsAdded: Boolean) Whether to order the |
Protected methods | |
---|---|
open Unit |
dispatchRestoreInstanceState(container: Bundle!) |
open Unit |
dispatchSaveInstanceState(container: Bundle!) |
open Boolean |
Whether this preference group should be shown on the same screen as its contained preferences. |
open Boolean |
onPrepareAddPreference(preference: Preference!) Prepares a |
open Unit |
onRestoreInstanceState(state: Parcelable!) |
open Parcelable! |
Inherited functions | |
---|---|