PreferenceActivity.OnPreferenceTreeClick(PreferenceScreen, Preference) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
deprecated
Called when a preference in the displayed hierarchy is clicked.
[Android.Runtime.Register("onPreferenceTreeClick", "(Landroid/preference/PreferenceScreen;Landroid/preference/Preference;)Z", "GetOnPreferenceTreeClick_Landroid_preference_PreferenceScreen_Landroid_preference_Preference_Handler")]
[System.Obsolete("deprecated")]
public virtual bool OnPreferenceTreeClick(Android.Preferences.PreferenceScreen? preferenceScreen, Android.Preferences.Preference? preference);
[<Android.Runtime.Register("onPreferenceTreeClick", "(Landroid/preference/PreferenceScreen;Landroid/preference/Preference;)Z", "GetOnPreferenceTreeClick_Landroid_preference_PreferenceScreen_Landroid_preference_Preference_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member OnPreferenceTreeClick : Android.Preferences.PreferenceScreen * Android.Preferences.Preference -> bool
override this.OnPreferenceTreeClick : Android.Preferences.PreferenceScreen * Android.Preferences.Preference -> bool
Parameters
- preferenceScreen
- PreferenceScreen
The preference screen that contains the clicked preference.
- preference
- Preference
The preference that was clicked.
Returns
true if the click was handled; otherwise, false. The default implementation returns false.
- Attributes
Remarks
This method was deprecated in API level 15.
This member is deprecated. This function is not relevant for a modern fragment-based PreferenceActivity.
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.