Preference.OnPreferenceClickListener

public static interface Preference.OnPreferenceClickListener

androidx.preference.Preference.OnPreferenceClickListener


Interface definition for a callback to be invoked when a Preference is clicked.

Summary

Public methods

abstract boolean onPreferenceClick(Preference preference)

Called when a preference has been clicked.

Public methods

onPreferenceClick

public abstract boolean onPreferenceClick (Preference preference)

Called when a preference has been clicked.

Parameters
preference Preference: The preference that was clicked

Returns
boolean true if the click was handled