public interface

Tracer

com.tencent.trackx.api.trace.Tracer

Summary

Public Methods
abstract void addTraceEventCallback(TraceEventCallback callback)
添加轨迹采集监听
abstract void beginTrace()
开始轨迹采集
abstract void endTrace(boolean refluxRemainingPoints)
停止轨迹采集
abstract void removeTraceEventCallback(TraceEventCallback callback)
移除轨迹采集监听
abstract void setConfig(TraceConfig config)
设置轨迹配置
abstract void setTracePointSource(TracePointSource tracePointSource)
设置轨迹源
abstract void startService(Notification notification)
开启前台服务。若能保证应用一直在前台运行则不需要调用,若不能保证应用一直在前台运行则需要调用。
abstract void stopService()
停止前台服务

Public Methods

public abstract void addTraceEventCallback (TraceEventCallback callback)

添加轨迹采集监听

Parameters
callback 轨迹采集监听 TraceEventCallback

public abstract void beginTrace ()

开始轨迹采集

public abstract void endTrace (boolean refluxRemainingPoints)

停止轨迹采集

Parameters
refluxRemainingPoints 是否继续上报剩余缓存轨迹数据

public abstract void removeTraceEventCallback (TraceEventCallback callback)

移除轨迹采集监听

Parameters
callback 轨迹采集监听 TraceEventCallback

public abstract void setConfig (TraceConfig config)

设置轨迹配置

Parameters
config 轨迹配置 TraceConfig

public abstract void setTracePointSource (TracePointSource tracePointSource)

设置轨迹源

Parameters
tracePointSource TracePointSource

public abstract void startService (Notification notification)

开启前台服务。若能保证应用一直在前台运行则不需要调用,若不能保证应用一直在前台运行则需要调用。

Parameters
notification 前台通知样式

public abstract void stopService ()

停止前台服务