loadInterstitialAd method

Future<void> loadInterstitialAd(
  1. InterstitialAd ad
)

Implementation

Future<void> loadInterstitialAd(InterstitialAd ad) {
  if (adIdFor(ad) != null) {
    return Future<void>.value();
  }

  final int adId = _nextAdId++;
  _loadedAds[adId] = ad;
  VponLogger.d('channel.invokeMethod loadInterstitialAd, request: $ad');
  return channel.invokeMethod<void>(
    'loadInterstitialAd',
    <String, dynamic>{
      'adId': adId,
      'licenseKey': ad.licenseKey,
      'request': ad.request,
    },
  );
}