Aracılığıyla paylaş


Preference.GetPersistedFloat(Single) Method

Definition

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

[Android.Runtime.Register("getPersistedFloat", "(F)F", "GetGetPersistedFloat_FHandler")]
protected virtual float GetPersistedFloat (float defaultReturnValue);
[<Android.Runtime.Register("getPersistedFloat", "(F)F", "GetGetPersistedFloat_FHandler")>]
abstract member GetPersistedFloat : single -> single
override this.GetPersistedFloat : single -> single

Parameters

defaultReturnValue
Single

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

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