public final class LocationManager
extends java.lang.Object
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
LocationManager.UpdateHandler |
| 限定符和类型 | 方法和说明 |
|---|---|
static LocationManager |
getInstance(android.content.Context context) |
AMapLocation |
getLastKnownLocation() |
AMapLocationWrapper |
getLastPersistentLocation() |
void |
onLocationChanged(AMapLocation 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 onLocationChanged(AMapLocation location)
public void registerListener(LocationListener listener)
public void unregisterListener(LocationListener listener)
public AMapLocation getLastKnownLocation()
public AMapLocationWrapper getLastPersistentLocation()
public void updateOption(LocationManager.UpdateHandler handler)