目录

1 getInstance(Context context):TagManager

1.1 Definition

This API is used to obtain a singleton instance of the TagManager class and creates it if necessary.

1.2 Call Example

  1. TagManager.getInstance(context);

1.3 Input Parameters

Parameter

Type

Description

context

Context

Context.

1.4 Return Values

Type

Description

TagManager

Singleton instance of TagManager.

2 flush()

2.1 Definition

This API is used to manually scheduled events that are queuing when the network connection is available.

2.2 Call Example

  1. TagManager.getInstance(context).flush();

2.3 Input Parameters

None.

2.4 Return Values

None.

3 getDataBundle():DataBundle

3.1 Definition

This API is used to return the data binding object used by TagManager.

3.2 Call Example

  1. DataBundle bundle = TagManager.getInstance(context).getDataBundle();

3.3 Input Parameters

None.

3.4 Return Values

Type

Description

DataBundle

DataBunde used by TagManager.

4 setEnableReport(boolean enable):void

4.1 Definition

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.

4.2 Call Example

  1. TagManager.getInstance(context).setEnableReport(false);

4.3 Input Parameters

Parameter

Type

Description

enable

boolean

true: enable.

false: disable.

4.4 Return Values

None.