public class

AppLovinInterstitialAd

extends View
java.lang.Object
   ↳ android.view.View
     ↳ com.applovin.adview.AppLovinInterstitialAd

Class Overview

This class represents an interstitial ad that is rendered on top of the current activity.

Summary

[Expand]
Inherited Constants
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Methods
static AppLovinInterstitialAdDialog create(AppLovinSdk sdk, Context context)
Create a new interstitial dialog that can be shown to the user.
static boolean isAdReadyToDisplay(Context context)
This method is deprecated. Checking whether an ad is ready for display has been deprecated and will be removed in a future SDK version. Please use show(Context), or create an instance of AppLovinInterstitialAdDialog and use show() or showAndRender(AppLovinAd) to display an ad.
static void show(Context context, String placement)
This method is deprecated. Placements have been deprecated and will be removed in a future SDK version. Please configure zones from the UI and use them instead.
static void show(AppLovinSdk sdk, Context context, String placement)
This method is deprecated. Placements have been deprecated and will be removed in a future SDK version. Please configure zones from the UI and use them instead.
static void show(Context context)
Show a new interstitial ad.
[Expand]
Inherited Methods
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.accessibility.AccessibilityEventSource

Public Methods

public static AppLovinInterstitialAdDialog create (AppLovinSdk sdk, Context context)

Create a new interstitial dialog that can be shown to the user. This is primarily useful in advanced integrations as the Ad Dialog allows finer control - including manually pre-caching and rendering ads. If all you want to do is show an interstitial the default way, you're looking for show().

Parameters
sdk An SDK instance to use.
context A non-stale reference to the current top activity.
Returns

public static boolean isAdReadyToDisplay (Context context)

This method is deprecated.
Checking whether an ad is ready for display has been deprecated and will be removed in a future SDK version. Please use show(Context), or create an instance of AppLovinInterstitialAdDialog and use show() or showAndRender(AppLovinAd) to display an ad.

public static void show (Context context, String placement)

This method is deprecated.
Placements have been deprecated and will be removed in a future SDK version. Please configure zones from the UI and use them instead.

public static void show (AppLovinSdk sdk, Context context, String placement)

This method is deprecated.
Placements have been deprecated and will be removed in a future SDK version. Please configure zones from the UI and use them instead.

public static void show (Context context)

Show a new interstitial ad. This method will display a dialog on top of current activity's view with an advertisement in it.

Parameters
context Parent activity or application context. Must not be null.