antom.updateConfig()
Use this function to update the configuration of the antom instance. After calling updateConfig(), if you update env and locale, the global configuration will be distributed to each Element instance.
Note:
- This method supports performing a partial update. It only updates the passed parameters while keeping other configurations unchanged.
- This method is not applicable to
CVVElement.
Method signature
When calling this method, please use the following standard method signature format.
antom.updateConfig(newConfig)Parameters
This method contains the following parameter:
| Parameter | Data type | Required | Description |
| Object | Yes | A new configuration object supports partial updates, updating only the parameters provided. |
newConfig
| Parameter | Data type | Required | Description |
| env | String | No | Environment configuration options. Valid values are:
|
| debug | Boolean | No | Used to enable debug mode. Enabling it will output detailed logs, making it easier for developers to troubleshoot issues. Valid values are:
|
| locale | String | No | Used to set the internal display language for the SDK (such as error messages and prompts).
Valid values are:
|
Return values
This method does not return any value.