Preference.GetPersistedStringSet(ICollection<String>) Method

Definition

Attempts to get a persisted set of Strings if this Preference is persistent.

[Android.Runtime.Register("getPersistedStringSet", "(Ljava/util/Set;)Ljava/util/Set;", "GetGetPersistedStringSet_Ljava_util_Set_Handler", ApiSince=24)]
public virtual System.Collections.Generic.ICollection<string>? GetPersistedStringSet (System.Collections.Generic.ICollection<string>? defaultReturnValue);
[<Android.Runtime.Register("getPersistedStringSet", "(Ljava/util/Set;)Ljava/util/Set;", "GetGetPersistedStringSet_Ljava_util_Set_Handler", ApiSince=24)>]
abstract member GetPersistedStringSet : System.Collections.Generic.ICollection<string> -> System.Collections.Generic.ICollection<string>
override this.GetPersistedStringSet : System.Collections.Generic.ICollection<string> -> System.Collections.Generic.ICollection<string>

Parameters

defaultReturnValue
ICollection<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 set of Strings if this Preference is persistent.

Java documentation for android.preference.Preference.getPersistedStringSet(java.util.Set<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.

Applies to