fun readBoolean(key: String, defaultBooleanValue: Boolean = false): Boolean
Reads an Boolean from SharedPreferences. If no value is found the method returns false by default
key
- the key provided to find the stored value
Return
Boolean
the value saved to SharedPreferences of type Boolean