getBoolean

fun getBoolean(key: String, defaultValue: Boolean): Boolean

Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.

Return

a boolean, or defaultValue

Parameters

key

a String key

defaultValue

Value to return if key does not exist