opt
This commit is contained in:
@@ -11,6 +11,7 @@ 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.launcher.IMogoLauncher;
|
||||
import com.mogo.service.map.IMogoMapService;
|
||||
import com.mogo.service.module.IMogoActionManager;
|
||||
import com.mogo.service.module.IMogoAddressManager;
|
||||
@@ -158,7 +159,15 @@ public interface IMogoServiceApis extends IProvider {
|
||||
|
||||
/**
|
||||
* 地址操作
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
IMogoAddressManager getAddressManagerApi();
|
||||
|
||||
/**
|
||||
* 桌面控制接口
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
IMogoLauncher getLauncherApi();
|
||||
}
|
||||
|
||||
@@ -153,5 +153,11 @@ public class MogoServicePaths {
|
||||
* 刷新策略控制
|
||||
*/
|
||||
@Deprecated
|
||||
public static final String PATH_REFRESH_STRATEGY_API = "refreshstrategy/api";
|
||||
public static final String PATH_REFRESH_STRATEGY_API = "/refreshstrategy/api";
|
||||
|
||||
/**
|
||||
* 刷新策略控制
|
||||
*/
|
||||
@Deprecated
|
||||
public static final String PATH_LAUNCHER_API = "/launcher/api";
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
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 );
|
||||
}
|
||||
@@ -13,15 +13,31 @@ public interface IMogoDataManager extends IProvider {
|
||||
/**
|
||||
* 注册大而全数据变化监听
|
||||
*
|
||||
* @param tag 监听模块
|
||||
* @param module 监听模块
|
||||
* @param listener
|
||||
*/
|
||||
void registerDataListener( String tag, IMogoDataChangedListener listener );
|
||||
void registerDataListener( String module, IMogoDataChangedListener listener );
|
||||
|
||||
/**
|
||||
* 注销大而全数据变换监听
|
||||
*
|
||||
* @param tag
|
||||
* @param module
|
||||
*/
|
||||
void unregisterListener( String tag , IMogoDataChangedListener listener);
|
||||
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 );
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.mogo.service.launcher;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.alibaba.android.arouter.facade.template.IProvider;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2020-03-16
|
||||
* <p>
|
||||
* 桌面控制器
|
||||
*/
|
||||
public interface IMogoLauncher extends IProvider {
|
||||
|
||||
/**
|
||||
* 返回桌面主页
|
||||
*
|
||||
* @param context
|
||||
*/
|
||||
void backToLauncher( Context context );
|
||||
}
|
||||
Reference in New Issue
Block a user