caller调用notice ui

This commit is contained in:
liujing
2021-10-29 17:40:03 +08:00
parent e966c92f19
commit eec497158d
6 changed files with 35 additions and 39 deletions

View File

@@ -1,6 +1,8 @@
package com.mogo.eagle.core.function.api.hmi.warning
import com.mogo.eagle.core.data.enums.WarningDirectionEnum
import com.mogo.eagle.core.data.notice.NoticeNormalData
import com.mogo.eagle.core.data.notice.NoticeTrafficStylePushData
import com.mogo.eagle.core.function.api.base.IMoGoFunctionProvider
/**
@@ -17,11 +19,11 @@ interface IMoGoWaringProvider : IMoGoFunctionProvider {
* @param tag tag绑定弹窗的标志
*/
fun showWarningV2X(
v2xType: Int,
alertContent: String?,
ttsContent: String?,
tag: String?,
listenerIMoGo: IMoGoWarningStatusListener?
v2xType: Int,
alertContent: String?,
ttsContent: String?,
tag: String?,
listenerIMoGo: IMoGoWarningStatusListener?
)
/**
@@ -90,4 +92,18 @@ interface IMoGoWaringProvider : IMoGoFunctionProvider {
* @param closeTime 倒计时
*/
fun showWarning(direction: WarningDirectionEnum, closeTime: Long)
/**
* 呈现交警推送消息顶部弹框
*
* @param pushData 推送消息体
*/
fun showNoticeForTrafficWithData(pushData: NoticeTrafficStylePushData?)
/**
* 呈现普通公告顶部弹框
*
* @param normalData 推送消息体
*/
fun showNoticeNormalData(normalData: NoticeNormalData?)
}

View File

@@ -11,18 +11,6 @@ import com.mogo.eagle.core.function.api.base.IMoGoFunctionProvider;
*/
public interface IMoGoNoticeProvider extends IMoGoFunctionProvider {
/**
* 呈现交警推送消息顶部弹框
*
* @param pushData 推送消息体
*/
void showNoticeForTrafficWithData(NoticeTrafficStylePushData pushData);
/**
* 呈现普通公告顶部弹框
*
* @param normalData 推送消息体
*/
void showNoticeNormalData(NoticeNormalData normalData);
}