IPreferenceDataStore.PutLong(String, Int64) Method

Definition

Caution

deprecated

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)]
[System.Obsolete("deprecated")]
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)>]
[<System.Obsolete("deprecated")>]
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

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