Udostępnij za pośrednictwem


IPreferenceDataStore.PutLong(String, Int64) Method

Definition

Set a long value to the data store.

[Android.Runtime.Register("putLong", "(Ljava/lang/String;J)V", "GetPutLong_Ljava_lang_String_JHandler:Android.Preferences.IPreferenceDataStore, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public virtual void PutLong (string? key, long value);
[<Android.Runtime.Register("putLong", "(Ljava/lang/String;J)V", "GetPutLong_Ljava_lang_String_JHandler:Android.Preferences.IPreferenceDataStore, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member PutLong : string * int64 -> unit
override this.PutLong : string * int64 -> unit

Parameters

key
String

The name of the preference to modify.

value
Int64

The new value for the preference.

Attributes

Remarks

Set a long value to the data store.

Once the value is set the data store is responsible for holding it.

Java documentation for android.preference.PreferenceDataStore.putLong(java.lang.String, long).

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