Events
Listen to the AATKit events
There is a bunch of events which informs you about the placement state. For example you can figure out when placement is loaded by registering function to the onHaveAd
field of the AATKitBinding
object, like:
Function(String)? onHaveAd
Notifies that placement has finished loading an ad successfully.
Function(String)? onNoAd
Notifies that placement has failed to load an ad.
Function(String)? onPauseForAd
Notifies that ad went fullscreen and that application should pause.
Function(String)? onResumeAfterAd
Notifies that ad came back from fullscreen and that application should resume.
Function(AATKitReward)? onUserEarnedIncentive
Notifies that placement has earned incentive (by rewarded ads)
Function(AATKitConsentState)? managedConsentCMPFinished
Notifies that the used CMP has finished updating consent.
Function()? managedConsentNeedsUserInterface
Notifies that Managed Consent needs to show a consent dialog.
Function(String)? managedConsentCMPFailedToShow
Notifies that the used CMP failed to show.
Function(String)? managedConsentCMPFailedToLoad
Notifies that the used CMP failed to load.
Last updated