目录

InitSettings

Interface Info

agconnect.analytics.InitSettings

Allows you to configure global settings before the SDK is initialized.

Public Field Summary

Qualifier and Type

Field and Description

boolean

debugMode

Indicates whether to enable the debug mode. The default value is false, indicating that the debug mode is disabled.

string

terminalName

Device name, which identifies a device in debug mode. The default value is the first eight characters of the AAID. You can customize a device name that contains a maximum of 30 characters.

boolean

logDisabled

Indicates whether to disable logging for AppGallery Connect. The default value is false, indicating that the logging function is enabled.

string

logLevel

Minimum log level, which is case-insensitive. The options are INFO, WARN, and ERROR.

string

routePolicy

Data processing location. The options are CN (China), DE (Germany), SG (Singapore), and RU (Russia).

NOTE:
  • This configuration can take effect only after you have submitted a ticket online to apply for setting multiple data processing locations. For details, please refer to Submitting a Ticket Online.
  • If your app will be released in multiple countries/regions, you are advised to enable multiple data processing locations and specify the data processing locations as required.