setKey

open fun setKey(key: String)(source)

Sets the key for this preference, which is used as a key to the SharedPreferences or PreferenceDataStore. This should be unique for the package.

Parameters

key

The key for the preference