putInt

open fun putInt(@NonNull key: String, value: Int)(source)

Sets an Integer 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