BannerEventListener

abstract class BannerEventListener : BannerEventListenerInternal

Banner life cycle goes as follows:

  1. BasicEventListener.onLoaded: Called when the banner is loaded and ready to be shown. If this goes wrong, the BasicEventListener.onFailedToLoad is called.

  2. BasicEventListener.onImpression Ad Is Shown and ready to be Clicked.

  3. BasicEventListener.onClick A Creative of the Ad is clicked. It can be a call to action creative or not.

  4. OpenEventListener.onOpen happens after BasicEventListener.onClick, If it opens an Intent in the App to see the advertisement.

  5. CloseEventListener.onClose That Intent was closed and now we are back to your app.

  • BasicEventListener.onFailedToLoad When this occurs, the factory marks the object for deletion and then invokes this event with an R89LoadError. You can use that to know what happened.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun onClick()

Called when an ad is clicked.

Link copied to clipboard
open override fun onClose()

Called when the Intent is returned.

Link copied to clipboard
open override fun onFailedToLoad(error: R89LoadError)

Called when an ad is failed to load.

Link copied to clipboard
open override fun onImpression()

Called when an ad is shown in the screen for the first time.

Link copied to clipboard
open override fun onLayoutChange(width: Int, height: Int)

Called when something happends to the layout make sure to check if width and height are the same as the last time

Link copied to clipboard
open override fun onLoaded()

Called when an ad is loaded.

Link copied to clipboard
open override fun onOpen()

Called when an ad starts an Intent.