> 123
+ private void startLocation(){
+ if(status==1){
+ return;
+ }
+ // 设置定位参数
+ locationClient.setLocationOption(locationOption);
+ // 启动定位
+ locationClient.startLocation();
+
+ status = 1;
+ }
+
+ /**
+ * 停止定位
+ *
+ * @since 2.8.0
+ * @author hongming.wang
+ *
+ */
+ private void stopLocation(){
+ if(status == 2){
+ return;
+ }
+ // 停止定位
+ locationClient.stopLocation();
+ status = 2;
+ }
+
+ /**
+ * 销毁定位
+ *
+ * @since 2.8.0
+ * @author hongming.wang
+ *
+ */
+ private void destroyLocation(){
+ if (null != locationClient) {
+ locationClient.onDestroy();
+ locationClient = null;
+ locationOption = null;
+ status = 0;
+ }
+ }
+
+}