splashAdView static method

Widget splashAdView({
  1. bool? mIsExpress,
  2. required String androidCodeId,
  3. required String iosCodeId,
  4. bool? supportDeepLink,
  5. double? expressViewWidth,
  6. double? expressViewHeight,
  7. int? downloadType,
  8. int? adLoadType,
  9. int? timeout,
  10. bool? hideSkip,
  11. FlutterUnionadSplashCallBack? callBack,
})

开屏广告

mIsExpress 是否使用个性化模版 设定widget宽高

androidCodeId android 开屏广告广告id 必填

iosCodeId ios 开屏广告广告id 必填

supportDeepLink 是否支持 DeepLink 选填

expressViewWidth 期望view 宽度 dp 选填 mIsExpress=true必填

expressViewHeight 期望view高度 dp 选填 mIsExpress=true必填

FlutterUnionAdSplashCallBack 开屏广告回调

adLoadType用于标注此次的广告请求用途为预加载(当做缓存)还是实时加载,FlutterUnionadLoadType

timeout 开屏广告加载超时时间,建议大于3000,这里为了冷启动第一次加载到广告并且展示,示例设置了3000ms

hideSkip 是否影藏跳过按钮(当影藏的时候显示自定义跳过按钮) 默认显示

Implementation

static Widget splashAdView(
    {bool? mIsExpress,
    required String androidCodeId,
    required String iosCodeId,
    bool? supportDeepLink,
    double? expressViewWidth,
    double? expressViewHeight,
    int? downloadType,
    int? adLoadType,
    int? timeout,
    bool? hideSkip,
    FlutterUnionadSplashCallBack? callBack}) {
  return SplashAdView(
    mIsExpress: mIsExpress ?? false,
    androidCodeId: androidCodeId,
    iosCodeId: iosCodeId,
    supportDeepLink: supportDeepLink ?? true,
    expressViewWidth: expressViewWidth ?? 0.0,
    expressViewHeight: expressViewHeight ?? 0.0,
    downloadType:
        downloadType ?? FlutterUnionadDownLoadType.DOWNLOAD_TYPE_POPUP,
    adLoadType: adLoadType ?? FlutterUnionadLoadType.LOAD,
    timeout: timeout ?? 3000,
    hideSkip: hideSkip ?? false,
    callBack: callBack,
  );
}