public class

TrackerXNavLocation

extends Object
implements TracePointSource
java.lang.Object
   ↳ com.tencent.trackx.support.nav.loc.TrackerXNavLocation

Summary

Public Methods
static TrackerXNavLocation create(Context context)
创建导航SDK适配层实例
static String getNavId(Context context)
void registerListener(TracePointSource.TracePointListener callback)
注册轨迹点监听
void setInterval(int interval)
设置定位频率
void setProvider(TracePointSource.Provider provider)
设置定位模式
int start()
开始定位
void stop()
结束定位
void unregisterListener(TracePointSource.TracePointListener callback)
反注册轨迹点监听
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.tencent.trackx.api.trace.TracePointSource

Public Methods

public static TrackerXNavLocation create (Context context)

创建导航SDK适配层实例

Parameters
context 上下文
Returns
  • 导航SDK适配层实例

public static String getNavId (Context context)

public void registerListener (TracePointSource.TracePointListener callback)

注册轨迹点监听

Parameters
callback 轨迹点监听 TracePointListener

public void setInterval (int interval)

设置定位频率

Parameters
interval 定位频率,单位:秒

public void setProvider (TracePointSource.Provider provider)

设置定位模式

Parameters
provider 定位模式

public int start ()

开始定位

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

public void stop ()

结束定位

public void unregisterListener (TracePointSource.TracePointListener callback)

反注册轨迹点监听

Parameters
callback 轨迹点监听 TracePointListener