getBoolean

open fun getBoolean(defaultValue: Boolean): Boolean

Gets the contained values as a boolean.

Return

The value as a boolean, or the defaultValue if the value is not a boolean.

Parameters

defaultValue

The default value if the contained value is not a boolean.


Gets the contained values as a boolean.

Return

The value as a Boolean, or null if the value is not a Boolean.