putString

open fun putString(@NonNull key: String, @Nullable value: String)(source)

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