YandexAdsInterstitialComponent constructor
YandexAdsInterstitialComponent({})
Implementation
YandexAdsInterstitialComponent({
Function? onAdLoaded,
Function? onAdFailedToLoad,
Function? onAdFailedToShow,
Function? onImpression,
Function? onAdClicked,
Function? onAdShown,
Function? onAdDismissed,
required this.id,
}) {
interstitial = YandexAdsInterstitial();
FlutterYandexAds.addInterstitial(
id,
YandexAdsInterstitialCallbacks(
onAdLoaded: onAdLoaded,
onAdFailedToLoad: onAdFailedToLoad,
onAdFailedToShow: onAdFailedToShow,
onImpression: onImpression,
onAdClicked: onAdClicked,
onAdShown: onAdShown,
onAdDismissed: onAdDismissed,
),
);
interstitial.make(id);
}