Added in API level 1
Deprecated in API level 29

OnPreferenceClickListener


interface OnPreferenceClickListener
android.preference.Preference.OnPreferenceClickListener

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

Summary

Public methods
abstract Boolean

Called when a Preference has been clicked.

Public methods

onPreferenceClick

Added in API level 1
abstract fun onPreferenceClick(preference: Preference!): Boolean

Deprecated: Deprecated in Java.

Called when a Preference has been clicked.

Parameters
preference Preference!: The Preference that was clicked.
Return
Boolean True if the click was handled.