Use Tree Navigation
public class

TNKLocationManager

extends Object
java.lang.Object
   ↳ com.tencent.map.navi.tlocation.TNKLocationManager

Class Overview

导航的定位控制类,完成导航的自动获取定位功能

Summary

Nested Classes
class TNKLocationManager.ForegroundOptions 前台服务配置类  
Constants
int ROUTE_CHANGE
int ROUTE_FOLLOW
int ROUTE_INIT
int ROUTE_OTHER
Public Methods
void addLocationListener(ITNKLocationCallBack callBack)
注册监听,开启定位,支持注册多个。
void disableForegroundLocation()
关闭前台服务
void enableForegroundLocation()
开启前台服务
TNKLocationManager.ForegroundOptions getFgOptions()
获取定位前台服务的默认配置
static TNKLocationManager getInstance()
获取自动灌点Manager单例
void removeLicationListener(ITNKLocationCallBack callBack)
移除特定定位点回调监听
void setContext(Context context)
设置关联的上下文
void setForegroundNotification(int notificationId, Notification fgNotification)
前台服务通知
void setForegroundOption(TNKLocationManager.ForegroundOptions fgOptions)
前台服务的配置类
void startTLocation()
初始化腾讯定位sdk
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int ROUTE_CHANGE

Constant Value: 2 (0x00000002)

public static final int ROUTE_FOLLOW

Constant Value: 3 (0x00000003)

public static final int ROUTE_INIT

Constant Value: 1 (0x00000001)

public static final int ROUTE_OTHER

Constant Value: 4 (0x00000004)

Public Methods

public void addLocationListener (ITNKLocationCallBack callBack)

注册监听,开启定位,支持注册多个。

Parameters
callBack 定位的数据回调

public void disableForegroundLocation ()

关闭前台服务

public void enableForegroundLocation ()

开启前台服务

public TNKLocationManager.ForegroundOptions getFgOptions ()

获取定位前台服务的默认配置

public static TNKLocationManager getInstance ()

获取自动灌点Manager单例

public void removeLicationListener (ITNKLocationCallBack callBack)

移除特定定位点回调监听

public void setContext (Context context)

设置关联的上下文

Parameters
context ApplicationContext

public void setForegroundNotification (int notificationId, Notification fgNotification)

前台服务通知

Parameters
notificationId 通知id

public void setForegroundOption (TNKLocationManager.ForegroundOptions fgOptions)

前台服务的配置类

public void startTLocation ()

初始化腾讯定位sdk