bannerAdView static method
Widget
bannerAdView({
- bool? mIsExpress,
- required String androidCodeId,
- required String iosCodeId,
- bool? supportDeepLink,
- 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广告回调
@Deprecated("推荐使用FlutterUnionadBannerView,后续版本可能会移除改api")
Implementation
static Widget bannerAdView(
{bool? mIsExpress,
required String androidCodeId,
required String iosCodeId,
bool? supportDeepLink,
int? expressAdNum,
int? expressTime,
required double? expressViewWidth,
required double? expressViewHeight,
int? downloadType,
bool? isUserInteractionEnabled,
int? adLoadType,
FlutterUnionadBannerCallBack? callBack}) {
return FlutterUnionadBannerView(
androidCodeId: androidCodeId,
iosCodeId: iosCodeId,
width: expressViewWidth ?? 0,
height: expressViewHeight ?? 0,
callBack: callBack,
);
}