Share via


Preference.GetPersistedLong(Int64) Method

Definition

Attempts to get a persisted long if this Preference is persistent.

[Android.Runtime.Register("getPersistedLong", "(J)J", "GetGetPersistedLong_JHandler")]
protected virtual long GetPersistedLong (long defaultReturnValue);
[<Android.Runtime.Register("getPersistedLong", "(J)J", "GetGetPersistedLong_JHandler")>]
abstract member GetPersistedLong : int64 -> int64
override this.GetPersistedLong : int64 -> int64

Parameters

defaultReturnValue
Int64

The default value to return if either this Preference is not persistent or this Preference is not present.

Returns

The value from the data store or the default return value.

Attributes

Remarks

Attempts to get a persisted long if this Preference is persistent.

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

See also