[BadCase]解决BadCase入口与OCH模块之间的显示问题

[BadCase]解决BadCase入口与OCH模块之间的显示问题

[BadCase]解决BadCase入口与OCH模块之间的显示问题

[BadCase]解决BadCase入口与OCH模块之间的显示问题
This commit is contained in:
renwj
2022-02-15 20:22:51 +08:00
parent 183edda70e
commit 107d5f7d90
9 changed files with 164 additions and 85 deletions

View File

@@ -1,5 +1,6 @@
package com.mogo.eagle.core.function.api.hmi.warning
import android.view.View
import com.mogo.eagle.core.data.enums.WarningDirectionEnum
import com.mogo.eagle.core.data.notice.NoticeNormalData
import com.mogo.eagle.core.data.notice.NoticeTrafficStylePushData
@@ -179,4 +180,17 @@ interface IMoGoWaringProvider {
*/
fun showAdUpgradeStatus(upgradeMode : Int,downloadStatus : Int,currentProgress : Int,totalProgress : Int
,downloadVersion : String,upgradeStatus : Int)
/**
* 显示BadCase入口
*/
fun showBadCaseEntrance(entrance: View)
/**
* 注册badcase入口展示和隐藏的回调
* 当[onShow]被调用时,调用[showBadCaseEntrance]
* [onHide]回调不用关心,可以不注册
*/
fun registerBadCaseCallback(onShow:() -> Unit, onHide: (() -> Unit)?)
}