Skip to content

ws1-framework/com.airwatch.sdk.configuration/AppSettingFlags/getBoolean

getBoolean

open fun getBoolean(key: String): Boolean

Gets the boolean flag value from the in-memory map. Returns false if the key doesn't exist or value not an instance of Boolean.

Parameters

Name Description
key Non-null setting flag key.

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

Gets the boolean flag value from the in-memory map. Returns default value if the key doesn't exist or value not an instance of Boolean.

Parameters

Name Description
key Non-null setting flag key.
defaultValue Default value to return if key not found.

Return

true if flag is true, false otherwise.

Return

boolean flag value or defaultValue if not found.