interactionAdView function
个性化模板插屏广告
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();
}