[BadCase][Refactor]重构OCH相关调用

This commit is contained in:
renwj
2022-02-17 10:10:59 +08:00
parent 0554fe45ed
commit 70c6c1e8b2
5 changed files with 13 additions and 35 deletions

View File

@@ -181,16 +181,10 @@ 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)?)
fun registerBadCaseCallback(onShow:() -> View, onHide: (() -> Unit)?)
}