public interface

AppLovinInterstitialAdDialog

com.applovin.adview.AppLovinInterstitialAdDialog

Class Overview

This interface defines an AppLovin interstitial dialog. The interface can be used for finer control of interstitial flow.

Summary

Public Methods
abstract void dismiss()
Dismiss the interstitial dialog.
abstract boolean isAdReadyToDisplay()
Check if an ad is currently preloaded and ready to be displayed.
abstract boolean isShowing()
Check if the interstitial is currently showing
abstract void setAdClickListener(AppLovinAdClickListener callback)
Set a callback that will be notified of ad click events, which are generated whenever the user clicks on the ad.
abstract void setAdDisplayListener(AppLovinAdDisplayListener callback)
Set a callback that will be notified of ad display events.
abstract void setAdLoadListener(AppLovinAdLoadListener callback)
Set a callback that will be notified of ad loading events.
abstract void setAdVideoPlaybackListener(AppLovinAdVideoPlaybackListener callback)
Set a callback that may be notified of video playback events, if and only if the ad contains a video.
abstract void show(String placement)
Show the interstitial dialog and load the next ad, providing a placement name.
abstract void show()
Show the interstitial dialog and load the next ad
abstract void showAndRender(AppLovinAd ad, String placement)
Show the interstitial dialog an render specified pre-loaded ad, providing a placement name.
abstract void showAndRender(AppLovinAd ad)
Show the interstitial dialog an render specified pre-loaded ad.

Public Methods

public abstract void dismiss ()

Dismiss the interstitial dialog.

public abstract boolean isAdReadyToDisplay ()

Check if an ad is currently preloaded and ready to be displayed.

Returns
  • True if a subsequent call to a show method will result in an immediate display. False if a call to a show method will require network activity first.

public abstract boolean isShowing ()

Check if the interstitial is currently showing

Returns
  • True if the dialog is showing

public abstract void setAdClickListener (AppLovinAdClickListener callback)

Set a callback that will be notified of ad click events, which are generated whenever the user clicks on the ad.

Parameters
callback A callback to be notified of ad loading events.

public abstract void setAdDisplayListener (AppLovinAdDisplayListener callback)

Set a callback that will be notified of ad display events. These include ad displayed and ad hidden.

Parameters
callback A callback to be notified of ad loading events.

public abstract void setAdLoadListener (AppLovinAdLoadListener callback)

Set a callback that will be notified of ad loading events. These include ad loaded and ad failed to load events

Parameters
callback A callback to be notified of ad loading events.

public abstract void setAdVideoPlaybackListener (AppLovinAdVideoPlaybackListener callback)

Set a callback that may be notified of video playback events, if and only if the ad contains a video.

Parameters
callback A callback to be notified of video events.

public abstract void show (String placement)

Show the interstitial dialog and load the next ad, providing a placement name.

Parameters
placement Placement name.

public abstract void show ()

Show the interstitial dialog and load the next ad

public abstract void showAndRender (AppLovinAd ad, String placement)

Show the interstitial dialog an render specified pre-loaded ad, providing a placement name.

Parameters
ad object of size Interstitial to show
placement Placement name.

public abstract void showAndRender (AppLovinAd ad)

Show the interstitial dialog an render specified pre-loaded ad.

Parameters
ad AppLovinAd object of size Interstitial to show