Preference.PersistInt(Int32) Method

Definition

Attempts to persist an int if this Preference is persistent.

[Android.Runtime.Register("persistInt", "(I)Z", "GetPersistInt_IHandler")]
protected virtual bool PersistInt (int value);
[<Android.Runtime.Register("persistInt", "(I)Z", "GetPersistInt_IHandler")>]
abstract member PersistInt : int -> bool
override this.PersistInt : int -> bool

Parameters

value
Int32

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 an int if this Preference is persistent.

Java documentation for android.preference.Preference.persistInt(int).

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