PreferenceManager.OnPreferenceTreeClickListener


interface PreferenceManager.OnPreferenceTreeClickListener

Known direct subclasses
PreferenceFragmentCompat

A PreferenceFragmentCompat is the entry point to using the Preference library.

PreferenceFragment

This class is deprecated.

Use PreferenceFragmentCompat instead

Known indirect subclasses
BaseLeanbackPreferenceFragmentCompat

This fragment provides a preference fragment with leanback-style behavior, suitable for embedding into broader UI elements.

BaseLeanbackPreferenceFragment

This class is deprecated.

Use BaseLeanbackPreferenceFragmentCompat

LeanbackPreferenceFragmentCompat

This fragment provides a fully decorated leanback-style preference fragment, including a list background and header.

LeanbackPreferenceFragment

This class is deprecated.

Use LeanbackPreferenceFragmentCompat


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

Summary

Public functions

Boolean

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

Public functions

onPreferenceTreeClick

Added in 1.0.0
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

Returns
Boolean

Whether the click was handled