Indicates whether to enable the crash data reporting function.
Custom log level, Log.DEBUG/Log.INFO/Log.WARN/Log.ERROR levels are supported.
Custom log content. The length of a single log cannot exceed 4 KB. An overlong log will be truncated. The total size of logs cannot exceed 64 KB. If the upper limit is exceeded, earliest logs will be deleted.
event name
callback function
target node
event name
event callback
target node
event name
event callback
target node
Key of the custom key-value pair. The maximum length of each key is 1 KB. An overlong key will be truncated. A maximum of 64 key-value pairs are supported, and the excessive part will not be saved.
Value of the custom key-value pair. The maximum length of each value is 1 KB. An overlong value will be truncated. A maximum of 64 key-value pairs are supported, and the excessive part will not be saved.
Unique anonymous identifier generated for a user based on an algorithm. The maximum length is 1 KB. An overlong value will be truncated. If you want to delete a user ID, reset the parameter to an empty string. Deleting a user ID will not delete the crash records of the ID.
Generated using TypeDoc
This method is used to enable or disable the crash data reporting function. The function is enabled by default, indicating that the Crash service will collect and report crash data. If you do not want the Crash service to automatically collect or report crash data, disable the function.
是否开启崩溃服务,默认开启。开启时崩溃服务将会收集和上报崩溃信息。如果不需要使用崩溃服务,设置为关闭即可。
huawei.agc.crash.CrashService.enableCrashCollection(false);