移动检测模块,并优化说明文档

Signed-off-by: 董宏宇 <martindhy@gmail.com>
This commit is contained in:
董宏宇
2021-09-17 20:24:19 +08:00
parent 451eb965df
commit b4c3a01896
66 changed files with 47 additions and 39 deletions

View File

@@ -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);
}

View File

@@ -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);
}