It's happening now, watch the livestream.

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

Public methods

Unit
setShouldUseGeneratedIds(shouldUseGeneratedIds: Boolean)

Set whether the adapter created for this screen should attempt to use the preference IDs generated by PreferenceGroup#addPreference(Preference) as stable item IDs.

Boolean

See setShouldUseGeneratedIds(boolean)

Protected methods

Boolean

Unit

Inherited functions

Public methods

setShouldUseGeneratedIds

fun setShouldUseGeneratedIds(shouldUseGeneratedIds: Boolean): Unit

Set whether the adapter created for this screen should attempt to use the preference IDs generated by PreferenceGroup#addPreference(Preference) as stable item IDs. Setting this to false can suppress unwanted animations if Preference objects are frequently removed from and re-added to their containing PreferenceGroup.

This method may only be called when the preference screen is not attached to the hierarchy.

Default value is true.

Parameters
shouldUseGeneratedIds Boolean: true if the adapter should use the preference ID as a stable ID, or false to disable the use of stable IDs.

shouldUseGeneratedIds

fun shouldUseGeneratedIds(): Boolean

See setShouldUseGeneratedIds(boolean)

Return
Boolean: true if the adapter should use the preference IDs generated by PreferenceGroup#addPreference(Preference) as stable item IDs.

Protected methods

isOnSameScreenAsChildren

protected fun isOnSameScreenAsChildren(): Boolean

onClick

protected fun onClick(): Unit