Aracılığıyla paylaş


Preference.FindPreferenceInHierarchy(String) Method

Definition

Finds a Preference in this hierarchy (the whole thing, even above/below your PreferenceScreen screen break) with the given key.

[Android.Runtime.Register("findPreferenceInHierarchy", "(Ljava/lang/String;)Landroid/preference/Preference;", "GetFindPreferenceInHierarchy_Ljava_lang_String_Handler")]
protected virtual Android.Preferences.Preference? FindPreferenceInHierarchy (string? key);
[<Android.Runtime.Register("findPreferenceInHierarchy", "(Ljava/lang/String;)Landroid/preference/Preference;", "GetFindPreferenceInHierarchy_Ljava_lang_String_Handler")>]
abstract member FindPreferenceInHierarchy : string -> Android.Preferences.Preference
override this.FindPreferenceInHierarchy : string -> Android.Preferences.Preference

Parameters

key
String

The key of the Preference to find.

Returns

The Preference that uses the given key.

Attributes

Remarks

Finds a Preference in this hierarchy (the whole thing, even above/below your PreferenceScreen screen break) with the given key.

This only functions after we have been attached to a hierarchy.

Java documentation for android.preference.Preference.findPreferenceInHierarchy(java.lang.String).

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