YandexAdsAppOpenComponent constructor

YandexAdsAppOpenComponent({
  1. Function? onAdLoaded,
  2. Function? onAdFailedToLoad,
  3. Function? onAdFailedToShow,
  4. Function? onImpression,
  5. Function? onAdClicked,
  6. Function? onAdShown,
  7. Function? onAdDismissed,
  8. required String id,
})

Implementation

YandexAdsAppOpenComponent({
  Function? onAdLoaded,
  Function? onAdFailedToLoad,
  Function? onAdFailedToShow,
  Function? onImpression,
  Function? onAdClicked,
  Function? onAdShown,
  Function? onAdDismissed,
  required this.id,
}) {
  appopen = YandexAdsAppOpen();

  FlutterYandexAds.addAppOpen(
      id,
      YandexAdsAppOpenCallbacks(
        onAdLoaded: onAdLoaded,
        onAdFailedToLoad: onAdFailedToLoad,
        onAdFailedToShow: onAdFailedToShow,
        onImpression: onImpression,
        onAdClicked: onAdClicked,
        onAdShown: onAdShown,
        onAdDismissed: onAdDismissed,
      ));

  appopen.make(id);
}