getBooleanFlagValue
Retrieves the value of a boolean flag.
This method retrieves the value of the specified flag. If the flag exists within the loaded Aconfig Package, its value is returned. Otherwise, the provided defaultValue
is returned.
Platform-specific behavior:
Prior to API level 36, this method always returns
defaultValue
Return
The boolean value of the flag, or defaultValue
if the flag is not found.
Parameters
flagName
The name of the flag (excluding any package name prefix).
defaultValue
The value to return if the flag is not found.