Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 1.0.0
belongs to Maven artifact androidx.preference:preference:1.0.0-rc01

PreferenceManager.OnPreferenceTreeClickListener

public static interface PreferenceManager.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 onPreferenceTreeClick(Preference preference)

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

Public methods

onPreferenceTreeClick

added in version 1.0.0
public abstract boolean onPreferenceTreeClick (Preference preference)

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.