AdListener constructor

const AdListener({
  1. void onAdLoaded(
    1. Ad ad
    )?,
  2. void onAdFailedToLoad(
    1. Ad ad,
    2. LoadAdError error
    )?,
  3. void onNativeAdClicked(
    1. NativeAd ad
    )?,
  4. void onNativeAdImpression(
    1. NativeAd ad
    )?,
  5. void onAdOpened(
    1. Ad ad
    )?,
  6. void onApplicationExit(
    1. Ad ad
    )?,
  7. void onAdClosed(
    1. Ad ad
    )?,
  8. void onRewardedAdUserEarnedReward(
    1. RewardedAd ad,
    2. RewardItem reward
    )?,
  9. void onAppEvent(
    1. Ad ad,
    2. String name,
    3. String data
    )?,
})

Default constructor for AdListener.

Implementation

const AdListener({
  this.onAdLoaded,
  this.onAdFailedToLoad,
  this.onNativeAdClicked,
  this.onNativeAdImpression,
  this.onAdOpened,
  this.onApplicationExit,
  this.onAdClosed,
  this.onRewardedAdUserEarnedReward,
  this.onAppEvent,
});