Share via


Preference.PersistFloat(Single) Method

Definition

Attempts to persist a long if this Preference is persistent.

[Android.Runtime.Register("persistFloat", "(F)Z", "GetPersistFloat_FHandler")]
protected virtual bool PersistFloat (float value);
[<Android.Runtime.Register("persistFloat", "(F)Z", "GetPersistFloat_FHandler")>]
abstract member PersistFloat : single -> bool
override this.PersistFloat : single -> bool

Parameters

value
Single

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.persistFloat(float).

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