opt
This commit is contained in:
@@ -19,6 +19,7 @@ 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.strategy.IMogoRefreshStrategyController;
|
||||
import com.mogo.service.windowview.IMogoWindowManager;
|
||||
|
||||
/**
|
||||
@@ -146,4 +147,11 @@ public interface IMogoServiceApis extends IProvider {
|
||||
* @return
|
||||
*/
|
||||
IMogoActionManager getActionManagerApi();
|
||||
|
||||
/**
|
||||
* 获取刷新策略控制接口
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
IMogoRefreshStrategyController getRefreshStrategyControllerApi();
|
||||
}
|
||||
|
||||
@@ -148,4 +148,10 @@ public class MogoServicePaths {
|
||||
*/
|
||||
@Deprecated
|
||||
public static final String PATH_ACTION_APIS = "/mogoaction/api";
|
||||
|
||||
/**
|
||||
* 刷新策略控制
|
||||
*/
|
||||
@Deprecated
|
||||
public static final String PATH_REFRESH_STRATEGY_API = "refreshstrategy/api";
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.mogo.service.strategy;
|
||||
|
||||
import com.alibaba.android.arouter.facade.template.IProvider;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2020-03-13
|
||||
* <p>
|
||||
* 刷新策略控制
|
||||
*/
|
||||
public interface IMogoRefreshStrategyController extends IProvider {
|
||||
|
||||
/**
|
||||
* 中断当前刷新,在 delay ms 后再次刷新
|
||||
*
|
||||
* @param delay 单位(ms) 0 为则立即刷新,为负值则忽略
|
||||
*/
|
||||
void restartAutoRefreshAtTime( int delay );
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user