[V2X]优化V2X弹窗语音加载逻辑

This commit is contained in:
renwj
2022-07-01 19:57:29 +08:00
parent 82af6dda9c
commit 914cafaef6
12 changed files with 172 additions and 118 deletions

View File

@@ -14,7 +14,7 @@ interface IMoGoHmiViewProxy {
* 设置 V2X预警 代理View
* @param view
*/
fun setProxyNotificationView(view: IViewNotification)
fun setViewNotificationProvider(provider: IViewNotificationProvider)
/**
* 设置 红绿灯 代理View
@@ -27,4 +27,10 @@ interface IMoGoHmiViewProxy {
* @param view
*/
fun setProxyLimitingSpeedView(view: IViewLimitingVelocity)
interface IViewNotificationProvider {
fun getNotificationView() : IViewNotification?
}
}

View File

@@ -38,15 +38,6 @@ abstract class IViewNotification(context: Context?, attrs: AttributeSet?, defSty
*/
open var sidePattern: SidePattern = SidePattern.RESULT_TOP
/**
* 距离屏幕左上角 0,0点 X 轴距离单位px
*/
open var offsetX: Int = 0
/**
* 距离屏幕左上角 0,0点 Y 轴距离单位px
*/
open var offsetY: Int = 0
open fun setWarningIcon(@DrawableRes warningIcon: Int) {}

View File

@@ -74,7 +74,7 @@ interface IMoGoWaringProvider : IMoGoHmiViewProxy {
* @param ttsContent tts语音播报消息
* @param tag tag绑定弹窗的标志
*/
fun showWarningV2X(v2xType: String, alertContent: CharSequence?, ttsContent: String?, tag: String?, listenerIMoGo: IMoGoWarningStatusListener?, playTts: Boolean, expireTime: Long)
fun showWarningV2X(v2xType: String, alertContent: CharSequence?, ttsContent: String?, tag: String?, listener: IMoGoWarningStatusListener?, playTts: Boolean, expireTime: Long)
/**
* 关闭指定floatTag 的 VR下V2X预警弹窗