|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectcom.baidu.mapapi.MKLocationManager
public class MKLocationManager
定位服务类
字段摘要 | |
---|---|
static int |
MK_GPS_PROVIDER
|
static int |
MK_NETWORK_PROVIDER
|
方法摘要 | |
---|---|
boolean |
disableProvider(int provider)
禁用provider |
boolean |
enableProvider(int provider)
启用provider |
Location |
getLocationInfo()
返回定位信息 |
Bundle |
getNoitifyInternal()
返回通知间隔 |
void |
removeUpdates(LocationListener listener)
移除位置监听listener |
void |
requestLocationUpdates(LocationListener listener)
注册位置监听listener |
boolean |
setNoitifyInternal(int iMaxSecond,
int iMinSecond)
设置通知间隔 |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
字段详细信息 |
---|
public static final int MK_GPS_PROVIDER
public static final int MK_NETWORK_PROVIDER
方法详细信息 |
---|
public boolean enableProvider(int provider)
provider
- MK_GPS_PROVIDER, MK_NETWORK_PROVIDERpublic boolean disableProvider(int provider)
provider
- MK_GPS_PROVIDER, MK_NETWORK_PROVIDERpublic boolean setNoitifyInternal(int iMaxSecond, int iMinSecond)
iMaxSecond
- 最大通知间隔,单位:秒iMinSecond
- 最小通知间隔,单位:秒public Bundle getNoitifyInternal()
public Location getLocationInfo()
public void requestLocationUpdates(LocationListener listener)
public void removeUpdates(LocationListener listener)
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |