ScreenAdContentCallback class

A callback class for handling events related to ad content.

Implement this class to respond to various states and actions associated with ad content, such as loading success, showing success, and user interactions.

Methods in this class are called on the main thread.

Constructors

ScreenAdContentCallback.new({dynamic onAdLoaded(AdContentInfo ad)?, dynamic onAdFailedToLoad(AdFormat format, AdError error)?, dynamic onAdShowed(AdContentInfo ad)?, dynamic onAdFailedToShow(AdFormat format, AdError error)?, dynamic onAdClicked(AdContentInfo ad)?, dynamic onAdDismissed(AdContentInfo ad)?})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
onAdClicked → void Function(AdContentInfo ad)?
Called when the ad content is clicked by the user.
final
onAdDismissed → void Function(AdContentInfo ad)?
Called when the ad content is dismissed.
final
onAdFailedToLoad → void Function(AdFormat format, AdError error)?
Called when the ad content fails to load.
final
onAdFailedToShow → void Function(AdFormat format, AdError error)?
Called when the ad content fails to show.
final
onAdLoaded → void Function(AdContentInfo ad)?
Called when the ad content has been successfully loaded.
final
onAdShowed → void Function(AdContentInfo ad)?
Called when the ad content is successfully shown.
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