set Preference

protected abstract fun setPreference(key: String, value: String)

Method to store and set a preference

Parameters

key

: the key of the preference

value

: the value of the preference