isEnabled

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

Reads the enabled state of a flag, falling back to the app's own default.

Return

isEnabled of the cached flag, or defaultValue when get is null

Parameters

key

the flag key as configured in Pushwoosh

defaultValue

the value to use while the flag is not available, see get