java.lang.Object | |
↳ | com.tencent.map.navi.tlocation.TNKLocationManager |
导航的定位控制类,完成导航的自动获取定位功能
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
注册监听,开启定位,支持注册多个。
callBack | 定位的数据回调 |
---|
关闭前台服务
开启前台服务
移除特定定位点回调监听
设置关联的上下文
context | ApplicationContext |
---|
前台服务通知
notificationId | 通知id |
---|
初始化腾讯定位sdk