merge
This commit is contained in:
@@ -3,7 +3,6 @@ package com.mogo.service;
|
||||
|
||||
import com.alibaba.android.arouter.facade.template.IProvider;
|
||||
import com.mogo.service.analytics.IMogoAnalytics;
|
||||
import com.mogo.service.datamanager.IMogoDataManager;
|
||||
import com.mogo.service.fragmentmanager.IMogoFragmentManager;
|
||||
import com.mogo.service.imageloader.IMogoImageloader;
|
||||
import com.mogo.service.intent.IMogoIntentManager;
|
||||
@@ -29,13 +28,6 @@ public interface IMogoServiceApis extends IProvider {
|
||||
*/
|
||||
IMogoAnalytics getAnalyticsApi();
|
||||
|
||||
/**
|
||||
* 大而全的数据管理接口
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
IMogoDataManager getDataManagerApi();
|
||||
|
||||
/**
|
||||
* fragment 管理接口
|
||||
*
|
||||
|
||||
@@ -20,7 +20,6 @@ public interface IMogoAnalytics extends IProvider {
|
||||
*
|
||||
* @param event 事件名称
|
||||
* @param properties 埋点参数
|
||||
* @see AnalyticsManager
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
package com.mogo.service.datamanager;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2020-02-11
|
||||
* <p>
|
||||
* 描述
|
||||
*/
|
||||
public interface IMogoDataChanged2Listener extends IMogoDataChangedListener {
|
||||
|
||||
/**
|
||||
* 添加数据到指定类型
|
||||
*
|
||||
* @param module
|
||||
* @param object
|
||||
*/
|
||||
void onDataAdded( String module, Object object );
|
||||
|
||||
/**
|
||||
* 从数据从指定类型中移除
|
||||
*
|
||||
* @param module
|
||||
* @param object
|
||||
*/
|
||||
void onDataRemoved( String module, Object object );
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
package com.mogo.service.datamanager;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2020-02-11
|
||||
* <p>
|
||||
* 描述
|
||||
*/
|
||||
public interface IMogoDataChangedListener {
|
||||
|
||||
/**
|
||||
* 大而全数据变化回调
|
||||
*
|
||||
* @param data
|
||||
*/
|
||||
void onDataSetChanged( Object data );
|
||||
}
|
||||
@@ -1,51 +0,0 @@
|
||||
package com.mogo.service.datamanager;
|
||||
|
||||
import com.alibaba.android.arouter.facade.template.IProvider;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2020-02-11
|
||||
* <p>
|
||||
* 大而全的数据管理
|
||||
*/
|
||||
public interface IMogoDataManager extends IProvider {
|
||||
|
||||
/**
|
||||
* 注册大而全数据变化监听
|
||||
*
|
||||
* @param module 监听模块
|
||||
* @param listener
|
||||
*/
|
||||
void registerDataListener( String module, IMogoDataChangedListener listener );
|
||||
|
||||
/**
|
||||
* 注销大而全数据变换监听
|
||||
*
|
||||
* @param module
|
||||
*/
|
||||
void unregisterListener( String module, IMogoDataChangedListener listener );
|
||||
|
||||
/**
|
||||
* 发送数据到指定模块
|
||||
*
|
||||
* @param module 模块
|
||||
* @param object 数据
|
||||
*/
|
||||
void addData2( String module, Object object );
|
||||
|
||||
/**
|
||||
* 自定模块删除数据
|
||||
*
|
||||
* @param module 模块
|
||||
* @param object 数据
|
||||
*/
|
||||
void removeDataFrom( String module, Object object );
|
||||
|
||||
/**
|
||||
* 向固定模块透传数据
|
||||
*
|
||||
* @param module
|
||||
* @param object
|
||||
*/
|
||||
void syncData( String module, Object object );
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
package com.mogo.service.module;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2019-12-23
|
||||
* <p>
|
||||
* 卡片生命周期
|
||||
*/
|
||||
@Deprecated
|
||||
public interface IMogoModuleLifecycle {
|
||||
|
||||
/**
|
||||
* 当前显示的卡片
|
||||
*/
|
||||
void onPerform();
|
||||
|
||||
/**
|
||||
* 卡片不可用,任何卡片的操作都会被launcher忽略
|
||||
*/
|
||||
void onDisable();
|
||||
|
||||
/**
|
||||
* accOn 事件回调
|
||||
*/
|
||||
void accOn();
|
||||
|
||||
}
|
||||
@@ -8,10 +8,6 @@ import androidx.annotation.NonNull;
|
||||
import androidx.fragment.app.Fragment;
|
||||
|
||||
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.IMogoNaviListener;
|
||||
|
||||
|
||||
/**
|
||||
@@ -48,28 +44,6 @@ public interface IMogoModuleProvider extends IProvider {
|
||||
@NonNull
|
||||
String getModuleName();
|
||||
|
||||
/**
|
||||
* 生命周期控制方法
|
||||
* use {@link IMogoRegisterCenter#registerMogoModuleLifecycle(String, IMogoModuleLifecycle)} instead.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Deprecated
|
||||
default IMogoModuleLifecycle getCardLifecycle() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 地图监听对象
|
||||
* use {@link IMogoRegisterCenter#registerMogoMapListener(String, IMogoMapListener)} instead.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Deprecated
|
||||
default IMogoMapListener getMapListener() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 是哪种类型的提供者
|
||||
* <p>
|
||||
@@ -79,39 +53,6 @@ public interface IMogoModuleProvider extends IProvider {
|
||||
*/
|
||||
int getType();
|
||||
|
||||
/**
|
||||
* 导航监听
|
||||
* use {@link IMogoRegisterCenter#registerMogoNaviListener(String, IMogoNaviListener)} instead.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Deprecated
|
||||
default IMogoNaviListener getNaviListener() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 定位变化监听:此接口接受地图定位信息
|
||||
* use {@link IMogoRegisterCenter#registerMogoLocationListener(String, IMogoLocationListener)} instead.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Deprecated
|
||||
default IMogoLocationListener getLocationListener() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* marker 点击回调
|
||||
* use {@link IMogoRegisterCenter#registerMogoMarkerClickListener(String, IMogoMarkerClickListener)} instead.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Deprecated
|
||||
default IMogoMarkerClickListener getMarkerClickListener() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取模块对应 app 的包名
|
||||
*
|
||||
|
||||
@@ -5,7 +5,6 @@ import com.mogo.map.listener.IMogoMapListener;
|
||||
import com.mogo.map.location.IMogoLocationListener;
|
||||
import com.mogo.map.marker.IMogoMarkerClickListener;
|
||||
import com.mogo.map.navi.IMogoCarLocationChangedListener;
|
||||
import com.mogo.map.navi.IMogoNaviListener;
|
||||
|
||||
import java.util.Iterator;
|
||||
|
||||
@@ -17,21 +16,6 @@ import java.util.Iterator;
|
||||
*/
|
||||
public interface IMogoRegisterCenter extends IProvider {
|
||||
|
||||
/**
|
||||
* 注册模块生命周期函数
|
||||
*
|
||||
* @param tag
|
||||
* @param lifecycle
|
||||
*/
|
||||
void registerMogoModuleLifecycle( String tag, IMogoModuleLifecycle lifecycle );
|
||||
|
||||
/**
|
||||
* 注销模块生命周期函数
|
||||
*
|
||||
* @param tag
|
||||
*/
|
||||
void unregisterMogoModuleLifecycle( String tag );
|
||||
|
||||
/**
|
||||
* 注册地图监听函数
|
||||
*
|
||||
@@ -48,22 +32,6 @@ public interface IMogoRegisterCenter extends IProvider {
|
||||
*/
|
||||
void unregisterMogoMapListener( String tag );
|
||||
|
||||
/**
|
||||
* 注册导航监听函数
|
||||
*
|
||||
* @param tag
|
||||
* @param listener
|
||||
* @return
|
||||
*/
|
||||
void registerMogoNaviListener( String tag, IMogoNaviListener listener );
|
||||
|
||||
/**
|
||||
* 注销导航监听函数
|
||||
*
|
||||
* @param tag
|
||||
*/
|
||||
void unregisterMogoNaviListener( String tag );
|
||||
|
||||
/**
|
||||
* 注册定位监听函数
|
||||
*
|
||||
|
||||
@@ -1,43 +0,0 @@
|
||||
package com.mogo.service.module;
|
||||
|
||||
import com.alibaba.android.arouter.facade.template.IProvider;
|
||||
import com.mogo.eagle.core.data.map.MogoLatLng;
|
||||
|
||||
/**
|
||||
* @author zyz
|
||||
* 2020-01-12.
|
||||
*/
|
||||
public interface IMogoSearchManager extends IProvider {
|
||||
|
||||
/**
|
||||
* 回家
|
||||
*/
|
||||
void goHome();
|
||||
|
||||
/**
|
||||
* 去公司
|
||||
*/
|
||||
void goCompany();
|
||||
|
||||
/**
|
||||
* 打开搜索
|
||||
*/
|
||||
void showSearch();
|
||||
|
||||
/**
|
||||
* 规划路线
|
||||
*
|
||||
* @param destination 目的地
|
||||
*/
|
||||
void calculatePath( MogoLatLng destination );
|
||||
|
||||
/**
|
||||
* 分类搜索
|
||||
*/
|
||||
void categorySearch( String keyword );
|
||||
|
||||
/**
|
||||
* 打开导航设置
|
||||
*/
|
||||
void goSettings();
|
||||
}
|
||||
@@ -1,58 +0,0 @@
|
||||
package com.mogo.service.module;
|
||||
|
||||
import com.alibaba.android.arouter.facade.template.IProvider;
|
||||
|
||||
/**
|
||||
* @author zyz
|
||||
* 2020-01-12.
|
||||
*/
|
||||
public interface IMogoSettingManager extends IProvider {
|
||||
|
||||
/**
|
||||
* 路线偏好
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
int getPathPrefer();
|
||||
|
||||
/**
|
||||
* 音量
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
int getVolume();
|
||||
|
||||
/**
|
||||
* 获取播报模式
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
int getVoiceStyle();
|
||||
|
||||
/**
|
||||
* 日夜墨水
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
int getMapType();
|
||||
|
||||
/**
|
||||
* 简洁播报
|
||||
*/
|
||||
void speakDraft();
|
||||
|
||||
/**
|
||||
* 详细播报
|
||||
*/
|
||||
void speakDetail();
|
||||
|
||||
/**
|
||||
* 打开巡航模式
|
||||
*/
|
||||
void openAimlessMode();
|
||||
|
||||
/**
|
||||
* 关闭巡航模式
|
||||
*/
|
||||
void closeAimlessMode();
|
||||
}
|
||||
@@ -7,56 +7,8 @@ package com.mogo.service.module;
|
||||
* 模块类型
|
||||
*/
|
||||
public interface ModuleType {
|
||||
|
||||
/**
|
||||
* 卡片类型 - fragment
|
||||
*/
|
||||
int TYPE_CARD_FRAGMENT = 1;
|
||||
|
||||
/**
|
||||
* 卡片类型 - view
|
||||
*/
|
||||
@Deprecated
|
||||
int TYPE_CARD_VIEW = 2;
|
||||
|
||||
/**
|
||||
* 服务类型的模块
|
||||
*/
|
||||
int TYPE_SERVICE = 3;
|
||||
|
||||
/**
|
||||
* APP 列表模块
|
||||
*/
|
||||
@Deprecated
|
||||
int TYPE_APP_LIST = 4;
|
||||
|
||||
/**
|
||||
* 小智语音形象
|
||||
*/
|
||||
@Deprecated
|
||||
int TYPE_VOICE = 5;
|
||||
|
||||
/**
|
||||
* 地图模块
|
||||
*/
|
||||
@Deprecated
|
||||
int TYPE_MAP = 6;
|
||||
|
||||
/**
|
||||
* 导航模块
|
||||
*/
|
||||
@Deprecated
|
||||
int TYPE_NAVI = 7;
|
||||
|
||||
/**
|
||||
* 小智、天气、时间等
|
||||
*/
|
||||
@Deprecated
|
||||
int TYPE_EXTENSION = 8;
|
||||
|
||||
/**
|
||||
* 操作快捷入口
|
||||
*/
|
||||
@Deprecated
|
||||
int TYPE_ENTRANCE = 9;
|
||||
}
|
||||
|
||||
@@ -37,14 +37,6 @@ public interface IMogoStatusManager extends IProvider {
|
||||
*/
|
||||
boolean isAccOn();
|
||||
|
||||
/**
|
||||
* 是否有用户交互
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
boolean isUserInteracted();
|
||||
|
||||
|
||||
/**
|
||||
* 主页是否显示
|
||||
*
|
||||
@@ -73,13 +65,6 @@ public interface IMogoStatusManager extends IProvider {
|
||||
*/
|
||||
void setVrMode(String tag, boolean vrMode);
|
||||
|
||||
/**
|
||||
* 设置topView展示状态
|
||||
* @param tag 业务类型
|
||||
* @param show true - 显示 false - 隐藏
|
||||
*/
|
||||
void setTopViewShow(String tag, boolean show);
|
||||
|
||||
/**
|
||||
* 设置小智语音UI状态
|
||||
*
|
||||
@@ -105,15 +90,6 @@ public interface IMogoStatusManager extends IProvider {
|
||||
*/
|
||||
void setAccStatus( String tag, boolean isOn );
|
||||
|
||||
/**
|
||||
* 设置用户交互状态:地图手势交互、语音控制
|
||||
*
|
||||
* @param tag 业务类型
|
||||
* @param interrupt true - 用户在交互
|
||||
* @param callback 是否引起回调
|
||||
*/
|
||||
void setUserInteractionStatus( String tag, boolean interrupt, boolean callback );
|
||||
|
||||
/**
|
||||
* 主页 resume 状态
|
||||
*
|
||||
@@ -154,19 +130,6 @@ public interface IMogoStatusManager extends IProvider {
|
||||
*/
|
||||
void setMainPageLaunchedStatus( String tag, boolean launched );
|
||||
|
||||
/**
|
||||
* 顶部弹窗容器准备就绪
|
||||
* @param tag
|
||||
* @param isReady
|
||||
*/
|
||||
void setTopContainerReady(String tag, boolean isReady);
|
||||
|
||||
/**
|
||||
* 顶部容器是否准备就绪
|
||||
* @return
|
||||
*/
|
||||
boolean isTopContainerReady();
|
||||
|
||||
/**
|
||||
* 注册监听
|
||||
*
|
||||
|
||||
@@ -23,11 +23,6 @@ public enum StatusDescriptor {
|
||||
*/
|
||||
ACC_STATUS,
|
||||
|
||||
/**
|
||||
* 用户交互状态
|
||||
*/
|
||||
USER_INTERACTED,
|
||||
|
||||
/**
|
||||
* 主页 resume 状态
|
||||
*/
|
||||
@@ -53,20 +48,10 @@ public enum StatusDescriptor {
|
||||
*/
|
||||
MAIN_PAGE_CREATED,
|
||||
|
||||
/**
|
||||
* topView展示状态
|
||||
*/
|
||||
TOP_VIEW,
|
||||
|
||||
/**
|
||||
* 是否已经进入vr模式
|
||||
*/
|
||||
VR_MODE,
|
||||
|
||||
/**
|
||||
* 顶部弹框容器准备就绪
|
||||
*/
|
||||
TOP_CONTAINER_READY,
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
package com.mogo.service.voice;
|
||||
|
||||
import android.content.Intent;
|
||||
|
||||
/**
|
||||
* 全局免唤醒指令处理监听
|
||||
*
|
||||
* @author tongchenfei
|
||||
*/
|
||||
public interface IMogoGlobalVoiceManager {
|
||||
/**
|
||||
* 收到全局免唤醒指令和唤醒词指令
|
||||
* @param cmd 具体指令
|
||||
*/
|
||||
void onGlobalUnwake(String cmd, Intent intent);
|
||||
}
|
||||
@@ -1,40 +0,0 @@
|
||||
package com.mogo.service.windowview;
|
||||
|
||||
import android.view.View;
|
||||
|
||||
/**
|
||||
* EntranceView状态监听
|
||||
*
|
||||
* @author tongchenfei
|
||||
*/
|
||||
public interface IMogoEntranceViewListener {
|
||||
/**
|
||||
* 新view展示
|
||||
* 只针对左侧提示(LeftNotice)
|
||||
* @param type 展示的类型
|
||||
*/
|
||||
void onViewAdded(int type);
|
||||
|
||||
/**
|
||||
* view移除
|
||||
* 只针对左侧提示(LeftNotice)
|
||||
* @param type 移除的type
|
||||
*/
|
||||
void onViewRemoved(int type);
|
||||
|
||||
/**
|
||||
* view添加动画开始之前
|
||||
* @param view 添加的view
|
||||
* @deprecated 暂时没用
|
||||
*/
|
||||
@Deprecated
|
||||
void beforeViewAddAnim(View view);
|
||||
|
||||
/**
|
||||
* view 移除动画开始之前
|
||||
* @param view 移除的view
|
||||
* @deprecated 暂时没用
|
||||
*/
|
||||
@Deprecated
|
||||
void beforeViewRemoveAnim(View view);
|
||||
}
|
||||
Reference in New Issue
Block a user