[Add function]重构了当前位置获取的监听方式;

// 订阅监听
 CallerMapLocationListenerManager.addListener(TAG, IMoGoMapLocationListener)

 // 主动查询
 CallerMapLocationListenerManager.INSTANCE.getCurrentLocation()

Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
donghongyu
2021-11-09 20:41:21 +08:00
parent cde1338251
commit d915d60a7d
15 changed files with 146 additions and 37 deletions

View File

@@ -1,18 +0,0 @@
package com.mogo.eagle.core.function.api.map.hd;
import com.mogo.eagle.core.data.map.MogoLocation;
/**
* @author xiaoyuzhou
* @date 2021/11/1 7:17 下午
* 地图定位回调
*/
public interface IMoGoMapLocationListener {
/**
* 定位发生改变
*
* @param location 新定位点
*/
void onLocationChanged(MogoLocation location);
}

View File

@@ -0,0 +1,17 @@
package com.mogo.eagle.core.function.api.map.listener
import com.mogo.eagle.core.data.map.MogoLocation
/**
* @author xiaoyuzhou
* @date 2021/11/1 7:17 下午
* 地图定位回调
*/
interface IMoGoMapLocationListener {
/**
* 定位发生改变
*
* @param location 新定位点
*/
fun onLocationChanged(location: MogoLocation?)
}

View File

@@ -1,4 +1,4 @@
package com.mogo.eagle.core.function.api.map.hd
package com.mogo.eagle.core.function.api.map.listener
/**
*@author xiaoyuzhou