RewardedAdEventListener class
This class is responsible for listen interstitial ad events. Should be set to RewardedAd before ad showing.
Constructors
- RewardedAdEventListener({void onAdShown()?, void onAdFailedToShow(AdError error)?, void onAdDismissed()?, void onAdClicked()?, void onAdImpression(ImpressionData impressionData)?, void onRewarded(Reward reward)?})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onAdClicked → void Function()?
-
Notifies that the user clicked on the ad.
final
- onAdDismissed → void Function()?
-
Notifies that the ad has been dismissed.
final
- onAdFailedToShow → void Function(AdError error)?
-
Notifies that the ad failed to show.
final
- onAdImpression → void Function(ImpressionData impressionData)?
-
Notifies that an ad impression has been counted.
final
- onAdShown → void Function()?
-
Notifies that the ad has been shown.
final
- onRewarded → void Function(Reward reward)?
-
Notifies that the user should be rewarded for viewing an ad (impression counted).
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