add api
This commit is contained in:
@@ -0,0 +1,133 @@
|
||||
package com.mogo.service;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.alibaba.android.arouter.facade.template.IProvider;
|
||||
import com.mogo.service.analytics.IMogoAnalytics;
|
||||
import com.mogo.service.cardmanager.IMogoCardManager;
|
||||
import com.mogo.service.connection.IMogoSocketManager;
|
||||
import com.mogo.service.datamanager.IMogoDataManager;
|
||||
import com.mogo.service.fragmentmanager.IMogoFragmentManager;
|
||||
import com.mogo.service.imageloader.IMogoImageloader;
|
||||
import com.mogo.service.intent.IMogoIntentManager;
|
||||
import com.mogo.service.map.IMogoMapService;
|
||||
import com.mogo.service.module.IMogoRegisterCenter;
|
||||
import com.mogo.service.module.IMogoSearchManager;
|
||||
import com.mogo.service.module.IMogoSettingManager;
|
||||
import com.mogo.service.network.IMogoNetwork;
|
||||
import com.mogo.service.statusmanager.IMogoMsgCenter;
|
||||
import com.mogo.service.statusmanager.IMogoStatusManager;
|
||||
import com.mogo.service.windowview.IMogoWindowManager;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2020-03-06
|
||||
* <p>
|
||||
* 描述
|
||||
*/
|
||||
|
||||
public interface IMogoServiceApis extends IProvider {
|
||||
|
||||
/**
|
||||
* 获取埋点接口实例
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
IMogoAnalytics getAnalyticsApi();
|
||||
|
||||
/**
|
||||
* 卡片控制
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
IMogoCardManager getCardManagerApi();
|
||||
|
||||
/**
|
||||
* 获取socket操作api
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
IMogoSocketManager getSocketManagerApi( Context context );
|
||||
|
||||
/**
|
||||
* 大而全的数据管理接口
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
IMogoDataManager getDataManagerApi();
|
||||
|
||||
/**
|
||||
* fragment 管理接口
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
IMogoFragmentManager getFragmentManagerApi();
|
||||
|
||||
/**
|
||||
* 图片加载
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
IMogoImageloader getImageLoaderApi();
|
||||
|
||||
/**
|
||||
* 广播、语音指令分发
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
IMogoIntentManager getIntentManagerApi();
|
||||
|
||||
/**
|
||||
* 地图方服务接口
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
IMogoMapService getMapServiceApi();
|
||||
|
||||
/**
|
||||
* 各业务回调接口注册接口
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
IMogoRegisterCenter getRegisterCenterApi();
|
||||
|
||||
/**
|
||||
* 搜搜页面操作设置
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
IMogoSearchManager getSearchManagerApi();
|
||||
|
||||
/**
|
||||
* 导航设置页面
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
IMogoSettingManager getSettingManager();
|
||||
|
||||
/**
|
||||
* 网络接口api
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
IMogoNetwork getNetworkApi();
|
||||
|
||||
/**
|
||||
* @return
|
||||
*/
|
||||
IMogoMsgCenter getMsgCenterApi();
|
||||
|
||||
/**
|
||||
* 状态管理接口
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
IMogoStatusManager getStatusManagerApi();
|
||||
|
||||
/**
|
||||
* 桌面浮窗控制接口
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
IMogoWindowManager getWindowManager();
|
||||
}
|
||||
@@ -20,18 +20,21 @@ public class MogoServicePaths {
|
||||
* 地图服务接口ARouter实例化路径
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_SERVICES_MAP = "/mapservices/api";
|
||||
|
||||
/**
|
||||
* 图片接口ARouter实例化路径
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_UTILS_IMAGE_LOADER = "/imageloader/api";
|
||||
|
||||
/**
|
||||
* 埋点接口ARouter实例化路径
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_UTILS_ANALYTICS = "/utils/analytics";
|
||||
|
||||
|
||||
@@ -39,36 +42,43 @@ public class MogoServicePaths {
|
||||
* 网络服务接口路径
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_SERVICES_NETWORK = "/networkservices/api";
|
||||
|
||||
/**
|
||||
* netty 长链
|
||||
*/
|
||||
@Deprecated
|
||||
public static final String PATH_SOCKET_MANAGER = "/socket/manager";
|
||||
|
||||
/**
|
||||
* 状态管理接口
|
||||
*/
|
||||
@Deprecated
|
||||
public static final String PATH_STATUS_MANAGER = "/statusmanager/api";
|
||||
|
||||
/**
|
||||
* 消息中心
|
||||
*/
|
||||
@Deprecated
|
||||
public static final String PATH_MSG_CENTER = "/msgcenter/api";
|
||||
|
||||
/**
|
||||
* 消息中心
|
||||
*/
|
||||
@Deprecated
|
||||
public static final String PATH_WINDOW_MANAGER = "/windowmanger/api";
|
||||
|
||||
/**
|
||||
* 卡片控制
|
||||
*/
|
||||
@Deprecated
|
||||
public static final String PATH_CARD_MANAGER = "/cardmanager/api";
|
||||
|
||||
/**
|
||||
* 管理 fragment
|
||||
*/
|
||||
@Deprecated
|
||||
public static final String PATH_FRAGMENT_MANAGER = "/fragmentmanager/api";
|
||||
|
||||
/**
|
||||
@@ -76,43 +86,54 @@ public class MogoServicePaths {
|
||||
*
|
||||
* @deprecated use {@link #PATH_INTENT_MANAGER} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public static final String PATH_VOICE_MANAGER = "/voicemanager/api";
|
||||
|
||||
/**
|
||||
* 意图控制接口
|
||||
*/
|
||||
@Deprecated
|
||||
public static final String PATH_INTENT_MANAGER = "/intentmanager/api";
|
||||
|
||||
/**
|
||||
* 基础功能监听回调注册
|
||||
*/
|
||||
@Deprecated
|
||||
public static final String PATH_REGISTER_CENTER = "/registercenter/api";
|
||||
|
||||
/**
|
||||
* 基础家和公司管理
|
||||
*/
|
||||
@Deprecated
|
||||
public static final String PATH_ADDRESS_MANAGER = "/addressmanager/api";
|
||||
|
||||
/**
|
||||
* 导航搜索模块管理
|
||||
*/
|
||||
@Deprecated
|
||||
public static final String PATH_SEARCH_MANAGER = "/searchmanager/api";
|
||||
|
||||
/**
|
||||
* 基础设置参数管理
|
||||
*/
|
||||
@Deprecated
|
||||
public static final String PATH_SETTING_MANAGER = "/settingmanager/api";
|
||||
|
||||
|
||||
/**
|
||||
* 搜索module管理中心
|
||||
*/
|
||||
@Deprecated
|
||||
public static final String PATH_SERACH_CENTER = "/searchcenter/api";
|
||||
|
||||
/**
|
||||
* 大而全数据管理中心
|
||||
*/
|
||||
@Deprecated
|
||||
public static final String PATH_DATA_MANAGER = "/datamanager/api";
|
||||
|
||||
|
||||
/**
|
||||
* 接口集合
|
||||
*/
|
||||
public static final String PATH_SERVICE_APIS = "/mogoservice/apis";
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ import com.alibaba.android.arouter.facade.template.IProvider;
|
||||
import com.mogo.map.listener.IMogoMapListener;
|
||||
import com.mogo.map.location.IMogoLocationListener;
|
||||
import com.mogo.map.marker.IMogoMarkerClickListener;
|
||||
import com.mogo.map.navi.IMogoAimlessModeListener;
|
||||
import com.mogo.map.navi.IMogoNaviListener;
|
||||
|
||||
/**
|
||||
@@ -93,4 +94,21 @@ public interface IMogoRegisterCenter extends IProvider {
|
||||
*/
|
||||
void unregisterMogoMarkerClickListener( String tag );
|
||||
|
||||
/**
|
||||
* 注册巡航监听
|
||||
*
|
||||
* @param tag
|
||||
* @param listener
|
||||
* @return
|
||||
*/
|
||||
void registerMogoAimlessModeListener( String tag, IMogoAimlessModeListener listener );
|
||||
|
||||
/**
|
||||
* 注销定位监听函数
|
||||
*
|
||||
* @param tag
|
||||
*/
|
||||
void unregisterMogoAimlessModeListener( String tag );
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user