AdUtils class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
bindCallListener()
→ void
-
-
init({required List<String> types, String? appName, String? appId})
→ void
-
初始化广告
types
广告类型@{AdType}
appName
应用名称
appId
应用在mssp平台申请到的应用id,和包名一一对应
-
loadSplashAd({required List<String> types, required String adId, LoadSplashAdCall? splashAdCall, bool forceLoadSplashAd = true})
→ void
-
加载开屏广告
types
广告类型@{AdType},随机获取一个广告平台展示
adId
广告位id,即平台申请的代码位id
splashAdCall
广告加载回调
forceLoadSplashAd
是否强制加载启动广告
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
showSplashAd({LpClosedAdCall? lpClosedAdCall, AdPresentCall? adPresentCall, AdDismissedCall? adDismissedCall, AdClickCall? adClickCall, AdCacheSuccessCall? adCacheSuccessCall, AdCacheFailedCall? adCacheFailedCall})
→ void
-
显示开屏广告
lpClosedAdCall
【百度】落地页关闭回调
adPresentCall
【百度】广告成功展示回调
adDismissedCall
【百度】广告关闭回调
adClickCall
【百度】广告点击回调
adCacheSuccessCall
【百度】广告素材缓存成功
adCacheFailedCall
【百度】广告素材缓存失败
-
toString()
→ String
-
A string representation of this object.
inherited