Android.Preferences.PreferenceGroup.FindPreference Method
Finds a Android.Preferences.Preference based on its key.

Syntax

[Android.Runtime.Register("findPreference", "(Ljava/lang/CharSequence;)Landroid/preference/Preference;", "GetFindPreference_Ljava_lang_CharSequence_Handler")]
public virtual Preference FindPreference (Java.Lang.ICharSequence key)

Parameters

key
The key of the preference to retrieve.

Returns

Documentation for this section has not yet been entered.

Remarks

Finds a Android.Preferences.Preference based on its key. If two Android.Preferences.Preference share the same key (not recommended), the first to appear will be returned (to retrieve the other preference with the same key, call this method on the first preference). If this preference has the key, it will not be returned.

This will recursively search for the preference into children that are also Android.Preferences.PreferenceGroup.

[Android Documentation]

Requirements

Namespace: Android.Preferences
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1