public abstract class BigMapLocationListener
extends java.lang.Object
| 构造器和说明 |
|---|
BigMapLocationListener()
构造方法
|
| 限定符和类型 | 方法和说明 |
|---|---|
Context |
getContext()
得到上下文
|
abstract void |
onLocationChanged(BigMapLocation location)
定位到位置到以后回调此方法
|
void |
onLocationChanged(Location arg0)
定位到位置到以后回调此方法
|
void |
onProviderDisabled(java.lang.String arg0)
定位权限不可用时回调此方法
|
void |
onProviderEnabled(java.lang.String arg0)
定位权限启用时回调此方法
|
void |
onStatusChanged(java.lang.String arg0,
int arg1,
Bundle arg2)
定位权限启用时回调此方法
|
void |
setContext(Context context)
设置上下文
|
boolean |
startListening(LocationManager mLocationManager,
LocationListener pListener,
long pUpdateTime,
float pUpdateDistance)
开始定位
|
void |
stopListening(LocationManager mLocationManager)
停止定位
|
public Context getContext()
public void setContext(Context context)
context - 上下文对象public abstract void onLocationChanged(BigMapLocation location)
location - 定位modelpublic boolean startListening(LocationManager mLocationManager,
LocationListener pListener,
long pUpdateTime,
float pUpdateDistance)
mLocationManager - 定位管理器pListener - 定位监听pUpdateTime - 定位更新时间pUpdateDistance - 定位更新距离public void stopListening(LocationManager mLocationManager)
mLocationManager - 定位管理器public void onLocationChanged(Location arg0)
arg0 - 定位modelpublic void onProviderDisabled(java.lang.String arg0)
arg0 - 权限名称public void onProviderEnabled(java.lang.String arg0)
arg0 - 权限名称public void onStatusChanged(java.lang.String arg0,
int arg1,
Bundle arg2)
arg0 - 权限名称arg1 - 权限状态 LocationProvider.OUT_OF_SERVICE OR LocationProvider.TEMPORARILY_UNAVAILABLE OR LocationProvider.AVAILABLEarg2 - 可选参数,提供特定状态变量