[V2X]优化V2X弹窗语音加载逻辑
This commit is contained in:
@@ -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?
|
||||
}
|
||||
}
|
||||
@@ -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) {}
|
||||
|
||||
|
||||
@@ -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预警弹窗
|
||||
|
||||
Reference in New Issue
Block a user