Interface InterstitialListener


public interface InterstitialListener
This is a listener interface to be notified when someone clicks on an AppBrain interstitial, and when it's shown and dismissed. This is purely for reporting purposes, the implementation takes care of opening the offerwall etc.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Gets called after the interstitial failed to load.
    void
    Gets called after the interstitial was loaded successfully.
    void
    Gets called when an interstitial receives a click from the user.
    void
    onDismissed(boolean wasClicked)
    Gets called after the interstitial is dismissed.
    void
    Called when the interstitial is shown to the user.
  • Method Details

    • onPresented

      void onPresented()
      Called when the interstitial is shown to the user. This method gets called on the UI thread.
    • onClick

      void onClick()
      Gets called when an interstitial receives a click from the user. This method gets called on the UI thread.
    • onDismissed

      void onDismissed(boolean wasClicked)
      Gets called after the interstitial is dismissed. This method gets called on the UI thread.
      Parameters:
      wasClicked - if true, the interstitial is dismissing for the user to go on after clicking an ad, if false, the user just closed the interstitial.
    • onAdLoaded

      void onAdLoaded()
      Gets called after the interstitial was loaded successfully. This method gets called on the UI thread. Either onAdLoaded or onAdFailedToLoad will be called after requesting an interstitial through InterstitialBuilder's preload or show methods and before actually showing it. Only if you call InterstitialBuilder.preload(Context) multiple times in a row, onAdLoaded() will only be called once.
    • onAdFailedToLoad

      void onAdFailedToLoad(InterstitialListener.InterstitialError error)
      Gets called after the interstitial failed to load. This method gets called on the UI thread. Either onAdLoaded or onAdFailedToLoad will be called after requesting an interstitial through InterstitialBuilder's preload or show methods and before actually showing it.
      Parameters:
      error - if InterstitialListener.InterstitialError.NO_FILL loading the interstitial failed because there was no suitable ad available, otherwise (InterstitialListener.InterstitialError.ERROR) loading failed for some other reason.