Added in API level 1
Deprecated in API level 29

PreferenceCategory

open class PreferenceCategory : PreferenceGroup
kotlin.Any
   ↳ android.preference.Preference
   ↳ android.preference.PreferenceGroup
   ↳ android.preference.PreferenceCategory

Used to group Preference objects and provide a disabled title above the group.

Summary

Inherited XML attributes
Inherited constants
Public constructors
PreferenceCategory(context: Context!, attrs: AttributeSet!, defStyleAttr: Int, defStyleRes: Int)

PreferenceCategory(context: Context!, attrs: AttributeSet!, defStyleAttr: Int)

Public methods
open Boolean

open Boolean

Protected methods
open Boolean

Inherited functions

Public constructors

PreferenceCategory

Added in API level 1
PreferenceCategory(
    context: Context!,
    attrs: AttributeSet!,
    defStyleAttr: Int,
    defStyleRes: Int)

PreferenceCategory

Added in API level 1
PreferenceCategory(
    context: Context!,
    attrs: AttributeSet!,
    defStyleAttr: Int)

PreferenceCategory

Added in API level 1
PreferenceCategory(
    context: Context!,
    attrs: AttributeSet!)

PreferenceCategory

Added in API level 1
PreferenceCategory(context: Context!)

Public methods

isEnabled

Added in API level 1
open fun isEnabled(): Boolean

Deprecated: Deprecated in Java.

Return
Boolean true if this Preference is enabled, false otherwise

shouldDisableDependents

Added in API level 1
open fun shouldDisableDependents(): Boolean

Deprecated: Deprecated in Java.

Return
Boolean True if the dependents should be disabled, otherwise false.

Protected methods

onPrepareAddPreference

Added in API level 1
protected open fun onPrepareAddPreference(preference: Preference!): Boolean

Deprecated: Deprecated in Java.

Parameters
preference Preference!: The preference to add.
Return
Boolean Whether to allow adding the preference (true), or not (false).