Android.Preferences.Preference.SetDefaultValue Method
Sets the default value for this Preference, which will be set either if persistence is off or persistence is on and the preference is not found in the persistent storage.

Syntax

[Android.Runtime.Register("setDefaultValue", "(Ljava/lang/Object;)V", "GetSetDefaultValue_Ljava_lang_Object_Handler")]
public virtual void SetDefaultValue (Java.Lang.Object defaultValue)

Parameters

defaultValue
The default value.

Remarks

Sets the default value for this Preference, which will be set either if persistence is off or persistence is on and the preference is not found in the persistent storage.

[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