Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ReportPolicy

en

report policy

zh

上报策略

Hierarchy

  • ReportPolicy

Index

Constructors

Private constructor

Properties

threshold

threshold: number

Static ON_APP_LAUNCH_POLICY

ON_APP_LAUNCH_POLICY: ReportPolicy = new ReportPolicy(-1)
en

An event is reported when the app is started. An event is reported immediately when this policy is set. After that, an event is reported each time the app is started.

zh

应用启动时上报事件。选择该策略时会立即上报一次,此后每次应用启动时上报一次。

Static ON_CACHE_THRESHOLD_POLICY

ON_CACHE_THRESHOLD_POLICY: ReportPolicy = new ReportPolicy(30)
en

An event is reported when the number of cached events reaches the threshold. The value ranges from 30 to 1000. The default value is 30. If the specified value is beyond the value range, the boundary value is used.

zh

缓存事件条数达到阈值时上报事件,取值范围为30-1000条(默认30条),如果设置的值超过给定范围则取边界值。

Static ON_MOVE_BACKGROUND_POLICY

ON_MOVE_BACKGROUND_POLICY: ReportPolicy = new ReportPolicy(-1)
en

An event is reported when an app is switched to the background, including app exit.

zh

应用切后台时上报事件,包括应用退出。

Static ON_SCHEDULED_TIME_POLICY

ON_SCHEDULED_TIME_POLICY: ReportPolicy = new ReportPolicy(0)
en

An event is reported at the specified interval. The value ranges from 60 to 1800, in seconds. If the specified value is beyond the value range, the boundary value is used.

zh

根据指定的间隔时间查询上报事件,取值范围为60-1800秒,如果设置的值超过给定范围则取边界值。

Generated using TypeDoc