Sdílet prostřednictvím


Preference.PersistBoolean(Boolean) Method

Definition

Attempts to persist a boolean if this Preference is persistent.

[Android.Runtime.Register("persistBoolean", "(Z)Z", "GetPersistBoolean_ZHandler")]
protected virtual bool PersistBoolean (bool value);
[<Android.Runtime.Register("persistBoolean", "(Z)Z", "GetPersistBoolean_ZHandler")>]
abstract member PersistBoolean : bool -> bool
override this.PersistBoolean : bool -> bool

Parameters

value
Boolean

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

Java documentation for android.preference.Preference.persistBoolean(boolean).

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