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.

copy
antom.updateConfig(newConfig)

Parameters

This method contains the following parameter:

Parameter

Data type

Required

Description

newConfig

Object

Yes

A new configuration object supports partial updates, updating only the parameters provided.

newConfig

Parameter

Data type

Required

Description

envString

No

Environment configuration options. Valid values are:

  • sandbox: Sandbox environment for testing.
  • prod: Default value. Production environment for online services.
debugBoolean

No

Used to enable debug mode. Enabling it will output detailed logs, making it easier for developers to troubleshoot issues. Valid values are:

  • trueEnable debug mode.
  • falseDefault value, disable debug mode.
localeString

No

Used to set the internal display language for the SDK (such as error messages and prompts). 

Note: If the parameter is omitted or contains an unsupported value, the system will default to English.

Valid values are:

  • en_US: Default value. English
  • pt_BR: Portuguese (Brazil)
  • pt_PT: Portuguese
  • es_ES: Spanish
  • ko_KR: Korean
  • zh_CN: Simplified Chinese
  • zh_HK: Traditional Chinese
  • ms_MY: Malay
  • in_ID: Indonesian
  • th_TH: Thai
  • vi_VN: Vietnamese
  • tl_PH: Filipino
  • it_IT: Italian
  • de_DE: German
  • fr_FR: French
  • nl_NL: Dutch
  • ja_JP: Japanese
  • ro: Romanian
  • pl_PL: Polish
  • ar_SA: Arabic
  • tr_TR: Turkish
  • hi_IN: Hindi

Return values

This method does not return any value.