splashAdView static method
Widget
splashAdView({
- required String androidId,
- required String iosId,
- required int fetchDelay,
- bool? downloadConfirm,
- bool? isBidding,
- FlutterTencentAdBiddingController? bidding,
- FlutterTencentadSplashCallBack? callBack,
开屏广告
androidId
android广告ID
iosId
ios广告ID
fetchDelay
设置开屏广告从请求到展示所花的最大时长(并不是指广告曝光时长),
取值范围为1500, 5000
ms。如果需要使用默认值,可以调用上一个构造方法,
或者给 fetchDelay 设为0。
FlutterTencentAdSplashCallBack
广告回调
downloadConfirm
下载二次确认弹窗 默认false
isBidding
是否开启竞价模式 默认false
bidding
竞价成功、失败后调用 FlutterTencentAdBiddingController ,isBidding = true时必传
Implementation
static Widget splashAdView(
{required String androidId,
required String iosId,
required int fetchDelay,
bool? downloadConfirm,
bool? isBidding,
FlutterTencentAdBiddingController? bidding,
FlutterTencentadSplashCallBack? callBack}) {
return SplashAdView(
androidId: androidId,
iosId: iosId,
fetchDelay: fetchDelay,
callBack: callBack,
downloadConfirm: downloadConfirm ?? false,
isBidding: isBidding ?? false,
bidding: bidding,
);
}