[dev_arch_opt_3.0]

[Change]
[
1、删除旧版地图本定位注册
]

Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
donghongyu
2023-01-28 19:44:46 +08:00
parent 68a00f1239
commit 9a5def9afa
14 changed files with 0 additions and 594 deletions

View File

@@ -1,14 +0,0 @@
package com.mogo.map.listener;
import com.mogo.map.marker.IMogoMarkerClickListenerRegister;
/**
* @author congtaowang
* @since 2019-12-29
* <p>
* 主模块需要注册监听的事件
*/
public interface IMogoHosListenerRegister extends
IMogoMapListenerRegister,
IMogoMarkerClickListenerRegister {
}

View File

@@ -1,55 +0,0 @@
package com.mogo.map.listener;
import com.mogo.map.marker.IMogoMarkerClickListener;
import com.mogo.map.marker.MogoMarkersHandler;
/**
* @author congtaowang
* @since 2019-12-29
* <p>
* 描述
*/
public class MogoHosListenerRegister implements IMogoHosListenerRegister {
private static volatile MogoHosListenerRegister sInstance;
private MogoHosListenerRegister() {
}
public static MogoHosListenerRegister getInstance() {
if ( sInstance == null ) {
synchronized ( MogoHosListenerRegister.class ) {
if ( sInstance == null ) {
sInstance = new MogoHosListenerRegister();
}
}
}
return sInstance;
}
public synchronized void release() {
sInstance = null;
}
@Override
public void registerHostMapListener(String tag, IMogoMapListener listener ) {
MogoMapListenerHandler.Companion.getMogoMapListenerHandler().registerHostMapListener(tag, listener );
}
@Override
public void unregisterHostMapListener(String tag) {
MogoMapListenerHandler.Companion.getMogoMapListenerHandler().unregisterHostMapListener(tag);
}
@Override
public void registerMarkerClickListener( String tag,IMogoMarkerClickListener listener ) {
MogoMarkersHandler.Companion.getMogoMarkersHandler().registerMarkerClickListener(tag, listener );
}
@Override
public void unregisterMarkerClickListener(String tag) {
MogoMarkersHandler.Companion.getMogoMarkersHandler().unregisterMarkerClickListener(tag);
}
}

View File

@@ -1,44 +0,0 @@
package com.mogo.map.location;
import com.mogo.eagle.core.data.map.MogoLocation;
/**
* @author congtaowang
* @since 2019-12-19
* <p>
* 定位接口
*/
public interface IMogoLocationClient extends IMogoLocationListenerRegister {
/**
* 开始定位
*/
void start();
/**
* 开始定位
*
* @param interval 默认定位间隔
*/
void start( long interval );
/**
* 停止定位
*/
void stop();
/**
* 返回上一次有效定位
*
* @return
*/
MogoLocation getLastKnowLocation();
void destroy();
/**
* 更正最新的位置
* @param locationToUpdate
*/
void updateLocation(Object locationToUpdate);
}

View File

@@ -1,19 +0,0 @@
package com.mogo.map.location;
import com.mogo.eagle.core.data.map.MogoLocation;
/**
* @author congtaowang
* @since 2019-12-19
* <p>
* 定位回调
*/
public interface IMogoLocationListener {
/**
* 定位发生改变
*
* @param location 新定位点
*/
void onLocationChanged( MogoLocation location );
}

View File

@@ -1,24 +0,0 @@
package com.mogo.map.location;
/**
* @author congtaowang
* @since 2019-12-24
* <p>
* 地图监听注册管理
*/
public interface IMogoLocationListenerRegister {
/**
* 注册定位回调
*
* @param listener
*/
void addLocationListener( IMogoLocationListener listener );
/**
* 注销定位回调
*
* @param listener
*/
void removeLocationListener( IMogoLocationListener listener );
}

View File

@@ -1,69 +0,0 @@
package com.mogo.map.location;
import java.util.HashSet;
import java.util.Set;
/**
* @author congtaowang
* @since 2019-12-24
* <p>
* 地图监听注册管理
*/
public class MogoLocationListenerRegister implements IMogoLocationListenerRegister {
private static volatile MogoLocationListenerRegister sInstance;
private MogoLocationListenerRegister() {
}
public static MogoLocationListenerRegister getInstance() {
if ( sInstance == null ) {
synchronized ( MogoLocationListenerRegister.class ) {
if ( sInstance == null ) {
sInstance = new MogoLocationListenerRegister();
}
}
}
return sInstance;
}
public synchronized void release() {
sInstance = null;
}
private final Set< IMogoLocationListener > sListeners = new HashSet<>( 10 );
/**
* 注册定位回调
*
* @param listener
*/
@Override
public void addLocationListener( IMogoLocationListener listener ) {
if ( listener == null ) {
return;
}
synchronized ( sListeners ) {
sListeners.add( listener );
}
}
/**
* 注销定位回调
*
* @param listener
*/
@Override
public void removeLocationListener( IMogoLocationListener listener ) {
if ( listener == null ) {
return;
}
synchronized ( sListeners ) {
sListeners.remove( listener );
}
}
public Set< IMogoLocationListener > getListeners() {
return sListeners;
}
}