This commit is contained in:
wangcongtao
2019-12-30 16:35:51 +08:00
parent 9b93caefda
commit 5752829cf3
128 changed files with 7092 additions and 491 deletions

View File

@@ -3,6 +3,7 @@ package com.mogo.service.map;
import android.content.Context;
import com.alibaba.android.arouter.facade.template.IProvider;
import com.mogo.map.listener.IMogoHosListenerRegister;
import com.mogo.map.listener.IMogoMapListener;
import com.mogo.map.listener.IMogoMapListenerRegister;
import com.mogo.map.location.IMogoLocationClient;
@@ -21,9 +22,9 @@ import com.mogo.map.uicontroller.IMogoMapUIController;
* @author congtaowang
* @since 2019-12-18
* <p>
* 地图对外接口
* 地图对外接口
*/
public interface IMogoMapService extends IProvider, IMogoMapListenerRegister, IMogoNaviListenerRegister {
public interface IMogoMapService extends IProvider {
/**
* 获取定位服务实例,全局唯一
@@ -33,6 +34,14 @@ public interface IMogoMapService extends IProvider, IMogoMapListenerRegister, IM
*/
IMogoLocationClient getSingletonLocationClient( Context context );
/**
* 获取定位服务实例
*
* @param context
* @return 定位实例
*/
IMogoLocationClient getLocationClient( Context context );
/**
* 获取关键字搜索地址服务
*
@@ -50,30 +59,6 @@ public interface IMogoMapService extends IProvider, IMogoMapListenerRegister, IM
*/
IMogoGeoSearch getGeoSearch( Context context );
/**
* 注册地图事件,各业务模块不用关注
*
* @param listener 回调事件
*/
void registerHostMapListener( IMogoMapListener listener );
/**
* 反注册注册地图事件,各业务模块不用关注
*/
void unregisterHostMapListener();
/**
* 注册导航回调,各业务模块不用关注
*
* @param listener 回调函数
*/
void registerHostNaviListener( IMogoNaviListener listener );
/**
* 注销导航回调,各业务模块不用关注
*/
void unregisterHostNaviListener();
/**
* poi搜索服务
*
@@ -104,4 +89,11 @@ public interface IMogoMapService extends IProvider, IMogoMapListenerRegister, IM
* @return
*/
IMogoMapUIController getMapUIController();
/**
* 主模块监听注册
*
* @return
*/
IMogoHosListenerRegister getHostListenerRegister();
}