configure

fun configure(context: Context, config: BrazeConfig?): Boolean

Optional static method to set configuration values for the Braze singleton, overriding whatever values are present in the braze.xml. Calling this method at the beginning of each app run is encouraged.

Note that if the singleton is active, this this method will have no effect. Calling wipeData(), disableSdk(), or failing to properly provide an API key will reset the ability to call configure().

Override values will persist through app runs. To clear the override cache, pass a null config object. Multiple calls to configure will merge together. For example, setting parameter A in one config calls and parameter B in another config call will result in both parameter A & B being present in the override cache.

Parameters

context

Application context

config

A BrazeConfig to override any values in the braze.xml configuration or from a previously set config.