Settings.Global.PutLong(ContentResolver, String, Int64) Method

Definition

Convenience function for updating a secure settings value as a long integer.

[Android.Runtime.Register("putLong", "(Landroid/content/ContentResolver;Ljava/lang/String;J)Z", "")]
public static bool PutLong (Android.Content.ContentResolver? cr, string? name, long value);
[<Android.Runtime.Register("putLong", "(Landroid/content/ContentResolver;Ljava/lang/String;J)Z", "")>]
static member PutLong : Android.Content.ContentResolver * string * int64 -> bool

Parameters

cr
ContentResolver

The ContentResolver to access.

name
String

The name of the setting to modify.

value
Int64

The new value for the setting.

Returns

true if the value was set, false on database errors

Attributes

Remarks

Convenience function for updating a secure settings value as a long integer. This will either create a new entry in the table if the given name does not exist, or modify the value of the existing row with that name. Note that internally setting values are always stored as strings, so this function converts the given value to a string before storing it.

Java documentation for android.provider.Settings.Global.putLong(android.content.ContentResolver, 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