interactionAdView function

Widget interactionAdView({
  1. bool? mIsExpress,
  2. required String androidCodeId,
  3. required String iosCodeId,
  4. bool? supportDeepLink,
  5. required double expressViewWidth,
  6. required double expressViewHeight,
  7. required int expressNum,
})

个性化模板插屏广告

Implementation

Widget interactionAdView(
    {bool? mIsExpress,
    required String androidCodeId,
    required String iosCodeId,
    bool? supportDeepLink,
    required double expressViewWidth,
    required double expressViewHeight,
    required int expressNum}) {
  if (defaultTargetPlatform == TargetPlatform.android) {
    return AndroidView(
      viewType: 'com.gstory.flutter_unionad/InteractionAdView',
      creationParams: {
        "mIsExpress": mIsExpress ?? false,
        "androidCodeId": androidCodeId,
        "supportDeepLink": supportDeepLink ?? true,
        "expressViewWidth": expressViewWidth,
        "expressViewHeight": expressViewHeight,
        "expressNum": expressNum,
      },
      creationParamsCodec: const StandardMessageCodec(),
    );
  } else if (defaultTargetPlatform == TargetPlatform.iOS) {
    return Container();
  }
  return Container();
}