set

abstract fun set(key: String, value: String)

Set a String value in the preferences

Parameters

key

The name of the preference to modify.

value

The new value for the preference.