public interface

TracePointSource

com.tencent.trackx.api.trace.TracePointSource
Known Indirect Subclasses

Summary

Nested Classes
enum TracePointSource.Provider  
interface TracePointSource.TracePointListener  
Public Methods
abstract void registerListener(TracePointSource.TracePointListener callback)
注册轨迹点监听
abstract void setInterval(int interval)
设置定位频率
abstract void setProvider(TracePointSource.Provider provider)
设置定位模式
abstract int start()
开始定位
abstract void stop()
结束定位
abstract void unregisterListener(TracePointSource.TracePointListener callback)
反注册轨迹点监听

Public Methods

public abstract void registerListener (TracePointSource.TracePointListener callback)

注册轨迹点监听

Parameters
callback 轨迹点监听 TracePointSource.TracePointListener

public abstract void setInterval (int interval)

设置定位频率

Parameters
interval 定位频率,单位:秒

public abstract void setProvider (TracePointSource.Provider provider)

设置定位模式

Parameters
provider 定位模式

public abstract int start ()

开始定位

Returns
  • 结果码,0代表开启定位成功成功

public abstract void stop ()

结束定位

public abstract void unregisterListener (TracePointSource.TracePointListener callback)

反注册轨迹点监听

Parameters
callback 轨迹点监听 TracePointSource.TracePointListener