loadAppOpenAd method

Future<void> loadAppOpenAd(
  1. PAGAppOpenAd ad
)

Implementation

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

  final int adId = _nextAdId++;
  _loadedAds[adId] = ad;
  return channel.invokeMethod<void>(
    'loadAppOpenAd',
    <dynamic, dynamic>{
      'adId': adId,
      'adUnitId': ad.adUnitId,
    },
  );
}