getNonNullString

inline fun SharedPreferences.getNonNullString(key: String, defaultValue: String): String

Unlike the getString method it delegates to, this method requires a non-null default value, and therefore guarantees to return a non-null String.