merge
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user