public class SliderAdLoader
extends java.lang.Object
Class containing controls for slider ad loading.

Constructor Summary

Constructors
Constructor and Description
SliderAdLoader(android.content.Context context)
Constructs a new SliderAdLoader with specific configuration.

Method Summary

All Methods
Instance Methods
Concrete Methods
Modifier and TypeMethod and Description
voidcancelLoading()
Cancel loading the native ad.
voidloadSlider(NativeAdRequestConfiguration nativeAdRequestConfiguration)
Start loading the native ad unit by AdRequest on a background thread.
voidsetSliderAdLoadListener(SliderAdLoadListener listener)
Register a callback for listening native ad loader.

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

SliderAdLoader

public SliderAdLoader(@NonNull
                      android.content.Context context)
Constructs a new SliderAdLoader with 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 - an SliderAdLoadListener object that handles lifecycle native ad unit.

loadSlider

public void loadSlider(@NonNull
                       NativeAdRequestConfiguration nativeAdRequestConfiguration)
Start loading the native ad unit by AdRequest on a background thread.
Parameters:
nativeAdRequestConfiguration - an object of the AdRequest class with data for a targeted ad request.

cancelLoading

public void cancelLoading()
Cancel loading the native ad.