YandexAdsRewardedComponent constructor
YandexAdsRewardedComponent({})
Implementation
YandexAdsRewardedComponent({
Function? onAdLoaded,
Function? onAdFailedToLoad,
Function? onAdFailedToShow,
Function? onImpression,
Function? onAdClicked,
Function? onAdShown,
Function? onAdDismissed,
Function? onRewarded,
required this.id,
}) {
rewarded = YandexAdsRewarded();
FlutterYandexAds.addRewarded(
id,
YandexAdsRewardedCallbacks(
onAdLoaded: onAdLoaded,
onAdFailedToLoad: onAdFailedToLoad,
onAdFailedToShow: onAdFailedToShow,
onImpression: onImpression,
onAdClicked: onAdClicked,
onAdShown: onAdShown,
onAdDismissed: onAdDismissed,
onReward: onRewarded,
),
);
rewarded.make(id);
}