Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

OnPreferenceTreeClickListener

interface OnPreferenceTreeClickListener
androidx.preference.PreferenceManager.OnPreferenceTreeClickListener

Interface definition for a callback to be invoked when a Preference in the hierarchy rooted at this PreferenceScreen is clicked.

Summary

Public methods

abstract Boolean

Called when a preference in the tree rooted at this PreferenceScreen has been clicked.

Public methods

onPreferenceTreeClick

abstract fun onPreferenceTreeClick(preference: Preference!): Boolean

Called when a preference in the tree rooted at this PreferenceScreen has been clicked.

Parameters
preference Preference!: The preference that was clicked
Return
Boolean: Whether the click was handled