set

open override fun set(key: String, content: Any)

Sets the value for the given key in SharedPreferences.

Parameters

key

The key to associate with the value.

content

The value to be stored. It can be of any type.