putStringSet

fun putStringSet(key: String, values: Set<String>?): Boolean

Sets a set of String values in the shared preferences.

Return

true if the values were set successfully, false otherwise.

Parameters

key

The name of the preference to modify.

values

The set of new values for the preference. Passing null is equivalent to calling .remove with this key.