Share via


AbstractPreferences.PutFloat(String, Single) Method

Definition

Implements the putFloat method as per the specification in Preferences#putFloat(String,float).

[Android.Runtime.Register("putFloat", "(Ljava/lang/String;F)V", "GetPutFloat_Ljava_lang_String_FHandler")]
public override void PutFloat (string? key, float value);
[<Android.Runtime.Register("putFloat", "(Ljava/lang/String;F)V", "GetPutFloat_Ljava_lang_String_FHandler")>]
override this.PutFloat : string * single -> unit

Parameters

key
String

key with which the string form of value is to be associated.

value
Single

value whose string form is to be associated with key.

Attributes

Remarks

Implements the putFloat method as per the specification in Preferences#putFloat(String,float).

This implementation translates value to a string with Float#toString(float) and invokes #put(String,String) on the result.

Java documentation for java.util.prefs.AbstractPreferences.putFloat(java.lang.String, 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