public final class LocationManager
extends java.lang.Object
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
LocationManager.UpdateHandler |
| 限定符和类型 | 方法和说明 |
|---|---|
static LocationManager |
getInstance(android.content.Context context) |
BDLocation |
getLastKnownLocation() |
BDLocation |
getLastPersistentLocation() |
void |
onConnectHotSpotMessage(java.lang.String s,
int i) |
void |
onReceiveLocation(BDLocation location) |
void |
registerListener(LocationListener listener) |
void |
startLocation() |
void |
stopLocation() |
void |
unregisterListener(LocationListener listener) |
void |
updateOption(LocationManager.UpdateHandler handler) |
public static LocationManager getInstance(android.content.Context context)
public void startLocation()
public void stopLocation()
public void onReceiveLocation(BDLocation location)
public void onConnectHotSpotMessage(java.lang.String s,
int i)
public void registerListener(LocationListener listener)
public void unregisterListener(LocationListener listener)
public BDLocation getLastKnownLocation()
public BDLocation getLastPersistentLocation()
public void updateOption(LocationManager.UpdateHandler handler)