Partager via


Preference.PersistLong(Int64) Method

Definition

Attempts to persist a long if this Preference is persistent.

[Android.Runtime.Register("persistLong", "(J)Z", "GetPersistLong_JHandler")]
protected virtual bool PersistLong (long value);
[<Android.Runtime.Register("persistLong", "(J)Z", "GetPersistLong_JHandler")>]
abstract member PersistLong : int64 -> bool
override this.PersistLong : int64 -> bool

Parameters

value
Int64

The value to persist.

Returns

True if this Preference is persistent. (This is not whether the value was persisted, since we may not necessarily commit if there will be a batch commit later.)

Attributes

Remarks

Attempts to persist a long if this Preference is persistent.

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