Package com.yandex.mobile.ads.appopenad
Class AppOpenAdLoader
- java.lang.Object
-
- com.yandex.mobile.ads.appopenad.AppOpenAdLoader
-
@MainThread public final class AppOpenAdLoader extends java.lang.ObjectFull-screen app open ads.
-
-
Constructor Summary
Constructors Constructor Description AppOpenAdLoader(android.content.Context context)Constructs a newAppOpenAdLoaderprogrammatically.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancelLoading()Cancel active loading of the app open ads.voidloadAd(com.yandex.mobile.ads.common.AdRequestConfiguration adRequestConfiguration)Starts loading the ad byAdRequestConfigurationon a background thread.voidsetAdLoadListener(AppOpenAdLoadListener appOpenAdLoadListener)Sets anAppOpenAdEventListener.
-
-
-
Constructor Detail
-
AppOpenAdLoader
public AppOpenAdLoader(@NonNull android.content.Context context)Constructs a newAppOpenAdLoaderprogrammatically.- Parameters:
context- The activity context the view is running in, through which it can access 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 AppOpenAdLoadListener appOpenAdLoadListener)Sets anAppOpenAdEventListener.- Parameters:
appOpenAdLoadListener-AppOpenAdEventListener.
-
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 app open ads.
-
-