InterstitialEventListener class mixin

Interstitial life cycle goes as follows:

  1. onLoaded Called when the banner is loaded and ready to be shown. Or If this goes wrong, the onFailedToLoad when this happens the factory marks the object for deletion, and calls RefineryAdFactory.createInterstitial afterInterstitial.
  2. onOpen Called when the interstitial screen is launched on top of the app, in case of error the onAdFailedToShowFullScreen will be called.
  3. onImpression This means it did finish loading the creatives on the screen and they can be clicked.
  4. onClick The ad opens another Intent with the advertiser link.
  • RefineryAdFactory.createInterstitial afterInterstitial: Is called when some situations happen. So the app flow can be recovered. Situations when called are:
    • Everything went right and the user just closed the fullscreen ad
    • The ad hasn't loaded yet and you tried to show it
    • The ad has been Invalidated and you tried to show it. Gets invalidated when:
    • Fails to load
    • Already shown
    • Too Long without showing it
    • The ad failed to show
Implemented types

Constructors

InterstitialEventListener.callbacks({AdFailedToLoadCallback? onAdFailedToShowFullScreenCallback, AdVoidCallback? onClickCallback, AdFailedToLoadCallback? onFailedToLoadCallback, AdVoidCallback? onImpressionCallback, AdVoidCallback? onLoadedCallback, AdVoidCallback? onOpenCallback})
The helper factory constructor, which can be used to listen directly and in-place to specific events without the need to extend, mix, or implement InterstitialEventListener.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
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
onAdFailedToShowFullScreen(String message) → void
Called when is going to open at fullScreen but fails to do so in full screen.
onClick() → void
Called when an ad is clicked.
override
onFailedToLoad(String message) → void
Called when an ad is failed to load.
override
onImpression() → void
Called when an ad is shown on the screen for the first time.
override
onLoaded() → void
Called when an ad is loaded.
override
onOpen() → void
Called when an ad starts an Intent.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited