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.Object
Full-screen app open ads.
-
-
Constructor Summary
Constructors Constructor Description AppOpenAdLoader(android.content.Context context)
Constructs a newAppOpenAdLoader
programmatically.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancelLoading()
Cancel active loading of the app open ads.void
loadAd(com.yandex.mobile.ads.common.AdRequestConfiguration adRequestConfiguration)
Starts loading the ad byAdRequestConfiguration
on a background thread.void
setAdLoadListener(AppOpenAdLoadListener appOpenAdLoadListener)
Sets anAppOpenAdEventListener
.
-
-
-
Constructor Detail
-
AppOpenAdLoader
public AppOpenAdLoader(@NonNull android.content.Context context)
Constructs a newAppOpenAdLoader
programmatically.- 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 byAdRequestConfiguration
on a background thread.- Parameters:
adRequestConfiguration
-AdRequestConfiguration
-
cancelLoading
public void cancelLoading()
Cancel active loading of the app open ads.
-
-