PreferenceGroup.OnPrepareAddPreference(Preference) Method

Definition

Prepares a Preference to be added to the group.

[Android.Runtime.Register("onPrepareAddPreference", "(Landroid/preference/Preference;)Z", "GetOnPrepareAddPreference_Landroid_preference_Preference_Handler")]
protected virtual bool OnPrepareAddPreference (Android.Preferences.Preference? preference);
[<Android.Runtime.Register("onPrepareAddPreference", "(Landroid/preference/Preference;)Z", "GetOnPrepareAddPreference_Landroid_preference_Preference_Handler")>]
abstract member OnPrepareAddPreference : Android.Preferences.Preference -> bool
override this.OnPrepareAddPreference : Android.Preferences.Preference -> bool

Parameters

preference
Preference

The preference to add.

Returns

Whether to allow adding the preference (true), or not (false).

Attributes

Remarks

Prepares a Preference to be added to the group.

Java documentation for android.preference.PreferenceGroup.onPrepareAddPreference(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