@@ -0,0 +1,46 @@
|
||||
package com.mogo.eagle.core.function.api.check;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.alibaba.android.arouter.facade.template.IProvider;
|
||||
|
||||
/**
|
||||
* 检测接口
|
||||
*/
|
||||
public interface ICheckProvider extends IProvider {
|
||||
/**
|
||||
* 注册车辆监控变化监听
|
||||
*
|
||||
* @param module 监听模块
|
||||
* @param listener
|
||||
*/
|
||||
void registerVehicleMonitoringListener(String module, IMogoCheckListener listener);
|
||||
|
||||
/**
|
||||
* 注销车辆监控变化监听
|
||||
*
|
||||
* @param module
|
||||
*/
|
||||
void unregisterListener(String module, IMogoCheckListener listener);
|
||||
|
||||
/**
|
||||
* 启动检测模块
|
||||
*/
|
||||
void startCheckActivity(Context context);
|
||||
|
||||
/**
|
||||
* 检测弹框
|
||||
*/
|
||||
void showCheckDialog(Context context);
|
||||
|
||||
/**
|
||||
* 指标监测
|
||||
*/
|
||||
boolean checkMonitor(Context context);
|
||||
|
||||
/**
|
||||
* 根据监测指标修改主页检测按钮
|
||||
*/
|
||||
void updateMonitoringStatus(String module, boolean hasError);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.mogo.eagle.core.function.api.check;
|
||||
|
||||
/**
|
||||
* @author liujing
|
||||
* @description 监听指标发生变化, 通知首页检测入口处预警图标重新渲染
|
||||
* @since: 8/26/21
|
||||
*/
|
||||
public interface IMogoCheckListener {
|
||||
void updateMonitoringStatus(boolean hasError);
|
||||
}
|
||||
Reference in New Issue
Block a user