Commit 9249decf authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 3b5714d4
package com.mints.bcurd.ad
import android.app.Activity
import com.mints.bcurd.ad.AdManager
import com.mints.bcurd.ad.express.ExpressManager
import com.mints.bcurd.common.Constant
/**
* 描述:广告管理
* 作者:孟崔广
* 时间:2021/08/10 10:51
*/
object AdHelper {
const val AD_NO_SHOWTIME_OUT = 50 // 广告请示成功但在规定时间内未展示
const val AD_REQUEST_TIME_OUT = 1 // 广告预加载时长超时
/**
* 预加载应用内广告
*/
fun preInAd(activity: Activity?) {
// 预加载信息流
ExpressManager.loadExpress(Constant.CARRIER_SPLASH)
activity?.let {
AdManager.instance.splashPreLoadAll(activity)
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment