[Add function]重构了当前位置获取的监听方式;
// 订阅监听 CallerMapLocationListenerManager.addListener(TAG, IMoGoMapLocationListener) // 主动查询 CallerMapLocationListenerManager.INSTANCE.getCurrentLocation() Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
@@ -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?)
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.mogo.eagle.core.function.api.map.hd
|
||||
package com.mogo.eagle.core.function.api.map.listener
|
||||
|
||||
/**
|
||||
*@author xiaoyuzhou
|
||||
Reference in New Issue
Block a user