public final class BDLocationManager
extends java.lang.Object
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
BDLocationManager.OptionHandler |
| 限定符和类型 | 方法和说明 |
|---|---|
static BDLocationManager |
getInstance() |
BDLocation |
getLastKnownLocation() |
BDLocation |
getLastPersistentLocation() |
void |
init(android.content.Context context,
BDLocationManager.OptionHandler handler)
初始化,在application里面调用,第二次调用无效
|
void |
onConnectHotSpotMessage(java.lang.String s,
int i) |
void |
onReceiveLocation(BDLocation location) |
void |
registerListener(LocationListener listener) |
void |
unregisterListener(LocationListener listener) |
public static BDLocationManager getInstance()
public void init(android.content.Context context,
BDLocationManager.OptionHandler handler)
context - handler - 可以为null,为null时使用默认设置public void registerListener(LocationListener listener)
public void unregisterListener(LocationListener listener)
public void onReceiveLocation(BDLocation location)
public void onConnectHotSpotMessage(java.lang.String s,
int i)
public BDLocation getLastKnownLocation()
public BDLocation getLastPersistentLocation()