plusAssign

operator fun plusAssign(prefs: Preferences)(source)

Appends or replaces all pairs from prefs to this MutablePreferences. Keys in prefs will overwrite keys in this Preferences.

Example usage: mutablePrefs += preferencesOf(COUNTER_KEY to 100, NAME to "abcdef")

Parameters

prefs

Preferences to append to this MutablePreferences


operator fun plusAssign(pair: Preferences.Pair<*>)(source)

Appends or replaces all pair to this MutablePreferences.

Example usage: mutablePrefs += COUNTER_KEY to 100

Parameters

pair

the Preference.Pair to add to this MutablePreferences