getStringSet

fun getStringSet(key: String, defValues: Set<String>? = null): Set<String>?

Retrieves a set of String values from the shared preferences.

Note that the returned set should not be modified.

Return

The set of preference values if they exist, otherwise defValues.

Parameters

key

The name of the preference to retrieve.

defValues

Values to return if this preference does not exist.

Throws

If there is a preference with this name that is not a Set.