Android.Preferences.Preference.GetPersistedString Method
Attempts to get a persisted String from the Android.Content.ISharedPreferences.

Syntax

[Android.Runtime.Register("getPersistedString", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetPersistedString_Ljava_lang_String_Handler")]
protected virtual string GetPersistedString (string defaultReturnValue)

See Also

Preference.PersistString(string)

Parameters

defaultReturnValue
The default value to return if either the Preference is not persistent or the Preference is not in the shared preferences.

Returns

Documentation for this section has not yet been entered.

Remarks

Attempts to get a persisted String from the Android.Content.ISharedPreferences.

This will check if this Preference is persistent, get the SharedPreferences from the Android.Preferences.PreferenceManager, and get the value.

[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