public void Deactivate() { mListener = null; if (mAMapLocationManager != null) { mAMapLocationManager.RemoveUpdates(this); mAMapLocationManager.Destroy(); } mAMapLocationManager = null; }
public void Activate(ILocationSourceOnLocationChangedListener listener) { mListener = listener; if (mAMapLocationManager == null) { mAMapLocationManager = LocationManagerProxy.GetInstance(this.Context); /* * mAMapLocManager.setGpsEnable(false); * 1.0.2版本新增方法,设置true表示混合定位中包含gps定位,false表示纯网络定位,默认是true Location * API定位采用GPS和网络混合定位方式 * ,第一个参数是定位provider,第二个参数时间最短是2000毫秒,第三个参数距离间隔单位是米,第四个参数是定位监听者 */ mAMapLocationManager.RequestLocationData(LocationProviderProxy.AMapNetwork, 2000, 10, this); } }
public void Activate(ILocationSourceOnLocationChangedListener listener) { mMapLocationListener = listener; }
public void Deactivate() { mMapLocationListener = null; }
public void Deactivate() { Log.Debug(TAG, "deactivate listener "); locationChangedListener = null; }
public void Activate(ILocationSourceOnLocationChangedListener listener) { Log.Debug(TAG, "activate listener " + listener); locationChangedListener = listener; }
public void Deactivate() { _mapsListener = null; }
public void Deactivate() { mapsListener = null; }
public void Activate(ILocationSourceOnLocationChangedListener listener) { mapsListener = listener; }