This API is used to obtain a singleton instance of the TagManager class and creates it if necessary.
- TagManager.getInstance(context);
Parameter | Type | Description |
context | Context | Context. |
Type | Description |
TagManager | Singleton instance of TagManager. |
This API is used to manually scheduled events that are queuing when the network connection is available.
- TagManager.getInstance(context).flush();
None.
None.
This API is used to return the data binding object used by TagManager.
- DataBundle bundle = TagManager.getInstance(context).getDataBundle();
None.
Type | Description |
DataBundle | DataBunde used by TagManager. |
This API is used to specify whether to enable data collection based on predefined tracing points. If the function is disabled, no data will be reported any more.
- TagManager.getInstance(context).setEnableReport(false);
Parameter | Type | Description |
enable | boolean | true: enable. false: disable. |
None.