notify card accOn when acc on

This commit is contained in:
wangcongtao
2020-01-02 18:36:37 +08:00
parent d3d39a729b
commit 91c9e65e30
134 changed files with 281 additions and 6019 deletions

View File

@@ -45,4 +45,9 @@ public class MogoServicePaths {
* netty 长链
*/
public static final String PATH_SOCKET_MANAGER = "/socket/manager";
/**
* 状态管理接口
*/
public static final String PATH_STATUS_MANAGER = "/statusmanager/api";
}

View File

@@ -17,4 +17,9 @@ public interface IMogoModuleLifecycle {
* 卡片不可用任何卡片的操作都会被launcher忽略
*/
void onDisable();
/**
* accOn 事件回调
*/
void accOn();
}

View File

@@ -0,0 +1,68 @@
package com.mogo.service.statusmanager;
import com.alibaba.android.arouter.facade.template.IProvider;
/**
* @author congtaowang
* @since 2020-01-02
* <p>
* 车机状态
*/
public interface IMogoStatusManager extends IProvider {
/**
* 小智语音 UI 是否在展示
*
* @return
*/
boolean isVoiceShow();
/**
* adas UI 是否在展示
*
* @return
*/
boolean isADASShow();
/**
* v2x UI 是否在展示
*
* @return
*/
boolean isV2XShow();
/**
* push UI 是否在展示
*
* @return
*/
boolean isPushShow();
/**
* 设置小智语音UI状态
*
* @param show true - 显示 false - 隐藏
*/
void setVoiceUIShow( boolean show );
/**
* 设置 ADAS UI 状态
*
* @param show true - 显示 false - 隐藏
*/
void setADASUIShow( boolean show );
/**
* 设置 V2X UI 状态
*
* @param show true - 显示 false - 隐藏
*/
void setV2XUIShow( boolean show );
/**
* 设置 PUSH UI 状态
*
* @param show true - 显示 false - 隐藏
*/
void setPushUIShow( boolean show );
}