Bagikan melalui


Preference.PersistStringSet(ICollection<String>) Method

Definition

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

[Android.Runtime.Register("persistStringSet", "(Ljava/util/Set;)Z", "GetPersistStringSet_Ljava_util_Set_Handler", ApiSince=24)]
public virtual bool PersistStringSet (System.Collections.Generic.ICollection<string>? values);
[<Android.Runtime.Register("persistStringSet", "(Ljava/util/Set;)Z", "GetPersistStringSet_Ljava_util_Set_Handler", ApiSince=24)>]
abstract member PersistStringSet : System.Collections.Generic.ICollection<string> -> bool
override this.PersistStringSet : System.Collections.Generic.ICollection<string> -> bool

Parameters

values
ICollection<String>

The values to persist.

Returns

True if this Preference is persistent. (This is not whether the value was persisted, since we may not necessarily commit if there will be a batch commit later.)

Attributes

Remarks

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

Java documentation for android.preference.Preference.persistStringSet(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