Share via


Preference.IOnPreferenceClickListener.OnPreferenceClick(Preference) Method

Definition

Called when a Preference has been clicked.

[Android.Runtime.Register("onPreferenceClick", "(Landroid/preference/Preference;)Z", "GetOnPreferenceClick_Landroid_preference_Preference_Handler:Android.Preferences.Preference/IOnPreferenceClickListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool OnPreferenceClick (Android.Preferences.Preference? preference);
[<Android.Runtime.Register("onPreferenceClick", "(Landroid/preference/Preference;)Z", "GetOnPreferenceClick_Landroid_preference_Preference_Handler:Android.Preferences.Preference/IOnPreferenceClickListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnPreferenceClick : Android.Preferences.Preference -> bool

Parameters

preference
Preference

The Preference that was clicked.

Returns

True if the click was handled.

Attributes

Remarks

Called when a Preference has been clicked.

Java documentation for android.preference.Preference.OnPreferenceClickListener.onPreferenceClick(android.preference.Preference).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to