YandexAdsBannerComponent constructor
YandexAdsBannerComponent({})
Implementation
YandexAdsBannerComponent({
Key? key,
Function? onAdLoaded,
Function? onAdFailedToLoad,
Function? onImpression,
Function? onAdClicked,
Function? onLeftApplication,
Function? onReturnedToApplication,
required this.id,
required this.width,
required this.height,
}) {
banner = YandexAdsBanner();
banner.make(id, width, height);
if (onAdLoaded != null) {
_onAdLoaded(id, onAdLoaded);
}
if (onAdFailedToLoad != null) {
_onAdFailedToLoad(id, onAdFailedToLoad);
}
if (onImpression != null) {
_onImpression(id, onImpression);
}
if (onAdClicked != null) {
_onAdClicked(id, onAdClicked);
}
if (onLeftApplication != null) {
_onLeftApplication(id, onLeftApplication);
}
if (onReturnedToApplication != null) {
_onReturnedToApplication(id, onReturnedToApplication);
}
}