rocket / com.stavro_xhardha.rocket / Rocket / readBoolean

readBoolean

fun readBoolean(key: String, defaultBooleanValue: Boolean = false): Boolean

Reads an Boolean from SharedPreferences. If no value is found the method returns false by default

Parameters

key - the key provided to find the stored value

Return
Boolean the value saved to SharedPreferences of type Boolean