putFloat

open fun putFloat(@NonNull key: String, value: Float)(source)

Sets a Float value to the data store.

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

Parameters

key

The name of the preference to modify

value

The new value for the preference

See also