showInterstitialAd method

  1. @override
Future<bool> showInterstitialAd(
  1. String posId, {
  2. bool showPopup = false,
  3. bool showFullScreenVideo = false,
  4. bool showRewardVideo = false,
  5. bool autoPlayOnWifi = false,
  6. bool autoPlayMuted = true,
  7. String? customData,
  8. String? userId,
})
override

Implementation

@override
Future<bool> showInterstitialAd(
  String posId, {
  bool showPopup = false,
  bool showFullScreenVideo = false,
  bool showRewardVideo = false,
  bool autoPlayOnWifi = false,
  bool autoPlayMuted = true,
  String? customData,
  String? userId,
}) async {
  final bool result = await methodChannel.invokeMethod(
    'showInterstitialAd',
    {
      'posId': posId,
      'showPopup': showPopup,
      'showFullScreenVideo': showFullScreenVideo,
      'showRewardVideo': showRewardVideo,
      'autoPlayOnWifi': autoPlayOnWifi,
      'autoPlayMuted': autoPlayMuted,
      'customData': customData,
      'userId': userId,
    },
  );
  return result;
}