Class InterstitialAdLoader
- java.lang.Object
-
- com.yandex.mobile.ads.interstitial.InterstitialAdLoader
-
@MainThread public final class InterstitialAdLoader extends java.lang.Object
Full-screen interstitial ads.
-
-
Constructor Summary
Constructors Constructor Description InterstitialAdLoader(android.content.Context context)
Constructs a newInterstitialAdLoader
programmatically.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancelLoading()
Cancel active loading of the interstitial ads.void
loadAd(com.yandex.mobile.ads.common.AdRequestConfiguration adRequestConfiguration)
Starts loading the ad byAdRequestConfiguration
on a background thread.void
setAdLoadListener(InterstitialAdLoadListener loadListener)
Sets anInterstitialAdLoadListener
.
-
-
-
Constructor Detail
-
InterstitialAdLoader
public InterstitialAdLoader(@NonNull android.content.Context context)
Constructs a newInterstitialAdLoader
programmatically.- Parameters:
context
- The context through which can be accessible the current theme, resources, etc. In particular, it uses the window manager and theme in this context to present its UI.
-
-
Method Detail
-
setAdLoadListener
public void setAdLoadListener(@Nullable InterstitialAdLoadListener loadListener)
Sets anInterstitialAdLoadListener
.- Parameters:
loadListener
-InterstitialAdLoadListener
.
-
loadAd
public void loadAd(@NonNull com.yandex.mobile.ads.common.AdRequestConfiguration adRequestConfiguration)
Starts loading the ad byAdRequestConfiguration
on a background thread.- Parameters:
adRequestConfiguration
-AdRequestConfiguration
-
cancelLoading
public void cancelLoading()
Cancel active loading of the interstitial ads.
-
-