minusAssign

operator fun minusAssign(key: Preferences.Key<*>)(source)

Removes the preference with the given key from this MutablePreferences. If this Preferences does not contain the key, this is a no-op.

Example usage: mutablePrefs -= COUNTER_KEY

Parameters

key

the key to remove from this MutablePreferences