Preference.GetPersistedString(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to get a persisted String if this Preference is persistent.
[Android.Runtime.Register("getPersistedString", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetPersistedString_Ljava_lang_String_Handler")]
protected virtual string? GetPersistedString (string? defaultReturnValue);
[<Android.Runtime.Register("getPersistedString", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetPersistedString_Ljava_lang_String_Handler")>]
abstract member GetPersistedString : string -> string
override this.GetPersistedString : string -> string
Parameters
- defaultReturnValue
- String
The default value to return if either this Preference is not persistent or this Preference is not present.
Returns
The value from the data store or the default return value.
- Attributes
Remarks
Attempts to get a persisted String if this Preference is persistent.
Java documentation for android.preference.Preference.getPersistedString(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.