Settings.Secure.GetLong Settings.Secure.GetLong Method

Definition

Overloads

GetLong(ContentResolver, String) GetLong(ContentResolver, String)

Convenience function for retrieving a single secure settings value as a long.

GetLong(ContentResolver, String, Int64) GetLong(ContentResolver, String, Int64)

Convenience function for retrieving a single secure settings value as a long.

GetLong(ContentResolver, String) GetLong(ContentResolver, String)

Convenience function for retrieving a single secure settings value as a long.

[Android.Runtime.Register("getLong", "(Landroid/content/ContentResolver;Ljava/lang/String;)J", "")]
public static long GetLong (Android.Content.ContentResolver cr, string name);
static member GetLong : Android.Content.ContentResolver * string -> int64

Parameters

cr
ContentResolver ContentResolver

The ContentResolver to access.

name
String String

The name of the setting to retrieve.

Returns

Exceptions

Thrown if a setting by the given name can't be found or the setting value is not an integer.

Remarks

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.

GetLong(ContentResolver, String, Int64) GetLong(ContentResolver, String, Int64)

Convenience function for retrieving a single secure settings value as a long.

[Android.Runtime.Register("getLong", "(Landroid/content/ContentResolver;Ljava/lang/String;J)J", "")]
public static long GetLong (Android.Content.ContentResolver cr, string name, long def);
static member GetLong : Android.Content.ContentResolver * string * int64 -> int64

Parameters

cr
ContentResolver ContentResolver

The ContentResolver to access.

name
String String

The name of the setting to retrieve.

def
Int64 Int64

Value to return if the setting is not defined.

Returns

Remarks

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