AdWithViewListener class abstract

Shared event callbacks used in Native and Banner ads.

Implementers

Constructors

AdWithViewListener({AdEventCallback? onAdLoaded, AdLoadErrorCallback? onAdFailedToLoad, AdEventCallback? onAdOpened, AdEventCallback? onAdWillDismissScreen, AdEventCallback? onAdImpression, AdEventCallback? onAdClosed, OnPaidEventCallback? onPaidEvent, AdEventCallback? onAdClicked})
Default constructor for AdWithViewListener, meant to be used by subclasses.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
onAdClicked AdEventCallback?
Called when the ad is clicked.
final
onAdClosed AdEventCallback?
Called when the full screen view has been closed. You should restart anything paused while handling onAdOpened.
final
onAdFailedToLoad AdLoadErrorCallback?
Called when an ad request failed.
final
onAdImpression AdEventCallback?
Called when an impression occurs on the ad.
final
onAdLoaded AdEventCallback?
Called when an ad is successfully received.
final
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.
final
onAdWillDismissScreen AdEventCallback?
For iOS only. Called before dismissing a full screen view.
final
onPaidEvent OnPaidEventCallback?
Callback to be invoked when an ad is estimated to have earned money. Available for allowlisted accounts only.
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