다음을 통해 공유


IPreferenceDataStore.GetStringSet(String, ICollection<String>) Method

Definition

Retrieve a set of String values from the data store.

[Android.Runtime.Register("getStringSet", "(Ljava/lang/String;Ljava/util/Set;)Ljava/util/Set;", "GetGetStringSet_Ljava_lang_String_Ljava_util_Set_Handler:Android.Preferences.IPreferenceDataStore, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public virtual System.Collections.Generic.ICollection<string>? GetStringSet (string? key, System.Collections.Generic.ICollection<string>? defValues);
[<Android.Runtime.Register("getStringSet", "(Ljava/lang/String;Ljava/util/Set;)Ljava/util/Set;", "GetGetStringSet_Ljava_lang_String_Ljava_util_Set_Handler:Android.Preferences.IPreferenceDataStore, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member GetStringSet : string * System.Collections.Generic.ICollection<string> -> System.Collections.Generic.ICollection<string>
override this.GetStringSet : string * System.Collections.Generic.ICollection<string> -> System.Collections.Generic.ICollection<string>

Parameters

key
String

The name of the preference to retrieve.

defValues
ICollection<String>

Values to return if this preference does not exist.

Returns

Attributes

Remarks

Retrieve a set of String values from the data store.

Java documentation for android.preference.PreferenceDataStore.getStringSet(java.lang.String, 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