AdListener class
A listener for receiving notifications during the lifecycle of an ad.
Constructors
- AdListener({void onAdLoaded(Ad ad)?, void onAdFailedToLoad(Ad ad, LoadAdError error)?, void onNativeAdClicked(NativeAd ad)?, void onNativeAdImpression(NativeAd ad)?, void onAdOpened(Ad ad)?, void onApplicationExit(Ad ad)?, void onAdClosed(Ad ad)?, void onRewardedAdUserEarnedReward(RewardedAd ad, RewardItem reward)?, void onAppEvent(Ad ad, String name, String data)?})
-
Default constructor for AdListener.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onAdClosed → (void Function(Ad ad)?)
-
Called when an ad removes an overlay that covers the screen.
final
- onAdFailedToLoad → (void Function(Ad ad, LoadAdError error)?)
-
Called when an ad request failed.
final
- onAdLoaded → (void Function(Ad ad)?)
-
Called when an ad is successfully received.
final
- onAdOpened → (void Function(Ad ad)?)
-
Called when an ad opens an overlay that covers the screen.
final
- onAppEvent → (void Function(Ad ad, String name, String data)?)
-
Called when an app event is received.
final
- onApplicationExit → (void Function(Ad ad)?)
-
Called when an ad is in the process of leaving the application.
final
- onNativeAdClicked → (void Function(NativeAd ad)?)
-
Called when a click is recorded for a NativeAd.
final
- onNativeAdImpression → (void Function(NativeAd ad)?)
-
Called when an impression is recorded for a NativeAd.
final
- onRewardedAdUserEarnedReward → (void Function(RewardedAd ad, RewardItem reward)?)
-
Called when a RewardedAd triggers a reward.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited