Class InterstitialAdLoader
- java.lang.Object
-
- com.yandex.mobile.ads.interstitial.InterstitialAdLoader
-
@MainThread public final class InterstitialAdLoader extends java.lang.ObjectFull-screen interstitial ads.
-
-
Constructor Summary
Constructors Constructor Description InterstitialAdLoader(android.content.Context context)Constructs a newInterstitialAdLoaderprogrammatically.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancelLoading()Cancel active loading of the interstitial ads.voidloadAd(com.yandex.mobile.ads.common.AdRequestConfiguration adRequestConfiguration)Starts loading the ad byAdRequestConfigurationon a background thread.voidsetAdLoadListener(InterstitialAdLoadListener loadListener)Sets anInterstitialAdLoadListener.
-
-
-
Constructor Detail
-
InterstitialAdLoader
public InterstitialAdLoader(@NonNull android.content.Context context)Constructs a newInterstitialAdLoaderprogrammatically.- 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 byAdRequestConfigurationon a background thread.- Parameters:
adRequestConfiguration-AdRequestConfiguration
-
cancelLoading
public void cancelLoading()
Cancel active loading of the interstitial ads.
-
-