bannerAdView static method
Widget
bannerAdView({
- bool? mIsExpress,
- required String androidCodeId,
- required String iosCodeId,
- bool? supportDeepLink,
- required int expressAdNum,
- int? expressTime,
- required double? expressViewWidth,
- required double? expressViewHeight,
- int? downloadType,
- bool? isUserInteractionEnabled,
- int? adLoadType,
- FlutterUnionadBannerCallBack? callBack,
banner广告
androidCodeId
andrrid banner广告id 必填
iosCodeId
ios banner广告id 必填
express
是否使用个性化模版
supportDeepLink
是否支持 DeepLink 选填
expressAdNum
一次请求广告数量 大于1小于3 必填
expressTime
轮播间隔事件 30-120秒 选填
expressViewWidth
期望view宽度 dp 必填
expressViewHeight
期望view高度 dp 必填
adLoadType
用于标注此次的广告请求用途为预加载(当做缓存)还是实时加载,FlutterUnionadLoadType
FlutterUnionAdBannerCallBack
banner广告回调
Implementation
static Widget bannerAdView(
{bool? mIsExpress,
required String androidCodeId,
required String iosCodeId,
bool? supportDeepLink,
required int expressAdNum,
int? expressTime,
required double? expressViewWidth,
required double? expressViewHeight,
int? downloadType,
bool? isUserInteractionEnabled,
int? adLoadType,
FlutterUnionadBannerCallBack? callBack}) {
return BannerAdView(
mIsExpress: mIsExpress ?? false,
androidCodeId: androidCodeId,
iosCodeId: iosCodeId,
supportDeepLink: supportDeepLink ?? true,
expressViewWidth: expressViewWidth ?? 0,
expressViewHeight: expressViewHeight ?? 0,
expressAdNum: expressAdNum,
expressTime: expressTime ?? 30,
downloadType:
downloadType ?? FlutterUnionadDownLoadType.DOWNLOAD_TYPE_POPUP,
adLoadType: adLoadType ?? FlutterUnionadLoadType.LOAD,
callBack: callBack,
);
}