[BadCase][Refactor]重构OCH相关调用
This commit is contained in:
@@ -257,19 +257,12 @@ object CallerHmiManager : CallerBase() {
|
||||
waringProviderApi?.showAdUpgradeStatus(upgradeMode,downloadStatus, currentProgress, totalProgress, downloadVersion, upgradeStatus)
|
||||
}
|
||||
|
||||
/**
|
||||
* 显示BadCase入口
|
||||
*/
|
||||
fun showBadCaseEntrance(entrance: View) {
|
||||
waringProviderApi?.showBadCaseEntrance(entrance)
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册badcase入口展示和隐藏的回调
|
||||
* 当[onShow]被调用时,调用[showBadCaseEntrance]
|
||||
* 当[onShow]被调用时, 表示达到展示条件,返回展示的入口控件
|
||||
* [onHide]回调不用关心,可以不注册
|
||||
*/
|
||||
fun registerBadCaseCallback(onShow:() -> Unit, onHide: (() -> Unit)?) {
|
||||
fun registerBadCaseCallback(onShow:() -> View, onHide: (() -> Unit)?) {
|
||||
waringProviderApi?.registerBadCaseCallback(onShow, onHide)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user