BannerAdListener class
A listener for receiving notifications for the lifecycle of a BannerAd.
- Inheritance
-
- Object
- AdWithViewListener
- BannerAdListener
- Implementers
Constructors
- BannerAdListener({AdEventCallback? onAdLoaded, AdLoadErrorCallback? onAdFailedToLoad, AdEventCallback? onAdOpened, AdEventCallback? onAdClosed, AdEventCallback? onAdWillDismissScreen, AdEventCallback? onAdImpression, OnPaidEventCallback? onPaidEvent, AdEventCallback? onAdClicked})
-
Constructs a BannerAdListener that notifies for the provided event callbacks.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onAdClicked → AdEventCallback?
-
Called when the ad is clicked.
finalinherited
- onAdClosed → AdEventCallback?
-
Called when the full screen view has been closed. You should restart
anything paused while handling onAdOpened.
finalinherited
- onAdFailedToLoad → AdLoadErrorCallback?
-
Called when an ad request failed.
finalinherited
- onAdImpression → AdEventCallback?
-
Called when an impression occurs on the ad.
finalinherited
- onAdLoaded → AdEventCallback?
-
Called when an ad is successfully received.
finalinherited
- onAdOpened → AdEventCallback?
-
A full screen view/overlay is presented in response to the user clicking
on an ad. You may want to pause animations and time sensitive
interactions.
finalinherited
- onAdWillDismissScreen → AdEventCallback?
-
For iOS only. Called before dismissing a full screen view.
finalinherited
- onPaidEvent → OnPaidEventCallback?
-
Callback to be invoked when an ad is estimated to have earned money.
Available for allowlisted accounts only.
finalinherited
- 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