putBoolean

open fun putBoolean(@NonNull key: String, value: Boolean)(source)

Sets a Boolean 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