Package com.yandex.mobile.ads.nativeads
Class SliderAdLoader
- java.lang.Object
-
- com.yandex.mobile.ads.nativeads.SliderAdLoader
-
public class SliderAdLoader extends java.lang.ObjectClass containing controls for slider ad loading.
-
-
Constructor Summary
Constructors Constructor Description SliderAdLoader(android.content.Context context)Constructs a newSliderAdLoaderwith specific configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancelLoading()Cancel loading the native ad.voidloadSlider(NativeAdRequestConfiguration nativeAdRequestConfiguration)Start loading the native ad unit byAdRequeston a background thread.voidsetSliderAdLoadListener(SliderAdLoadListener listener)Register a callback for listening native ad loader.
-
-
-
Constructor Detail
-
SliderAdLoader
public SliderAdLoader(@NonNull android.content.Context context)Constructs a newSliderAdLoaderwith specific configuration.- Parameters:
context- The activity context used to retrieve the application context.
-
-
Method Detail
-
setSliderAdLoadListener
public void setSliderAdLoadListener(@Nullable SliderAdLoadListener listener)Register a callback for listening native ad loader.- Parameters:
listener- anSliderAdLoadListenerobject that handles lifecycle native ad unit.
-
loadSlider
public void loadSlider(@NonNull NativeAdRequestConfiguration nativeAdRequestConfiguration)Start loading the native ad unit byAdRequeston a background thread.- Parameters:
nativeAdRequestConfiguration- an object of theAdRequestclass with data for a targeted ad request.
-
cancelLoading
public void cancelLoading()
Cancel loading the native ad.
-
-