get

fun SharedPreferences.get(key: String, defaultValue: Any): Any

Retrieves the value of key from the preferences.

Return

The preference value, or defaultValue if the key does not exist.