Freigeben über


IPreferenceDataStore.PutFloat(String, Single) Method

Definition

Set a float value to the data store.

[Android.Runtime.Register("putFloat", "(Ljava/lang/String;F)V", "GetPutFloat_Ljava_lang_String_FHandler:Android.Preferences.IPreferenceDataStore, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public virtual void PutFloat (string? key, float value);
[<Android.Runtime.Register("putFloat", "(Ljava/lang/String;F)V", "GetPutFloat_Ljava_lang_String_FHandler:Android.Preferences.IPreferenceDataStore, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member PutFloat : string * single -> unit
override this.PutFloat : string * single -> unit

Parameters

key
String

The name of the preference to modify.

value
Single

The new value for the preference.

Attributes

Remarks

Set a float value to the data store.

Once the value is set the data store is responsible for holding it.

Java documentation for android.preference.PreferenceDataStore.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