public class NativeBulkAdLoader
extends java.lang.Object
Class containing controls for bulk request ad loading.

Constructor Summary

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

Method Summary

All Methods
Instance Methods
Concrete Methods
Modifier and TypeMethod and Description
voidcancelLoading()
Cancel bulk ad loading.
voidloadAds(NativeAdRequestConfiguration nativeAdRequestConfiguration, int adsCount)
Start loading the native ads by NativeAdRequestConfiguration on a background thread.
voidsetNativeBulkAdLoadListener(NativeBulkAdLoadListener listener)
Register a callback for listening native bulk ad loader.

Methods inherited from class java.lang.Object

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

Constructor Detail

NativeBulkAdLoader

public NativeBulkAdLoader(@NonNull
                          android.content.Context context)
Constructs a new NativeBulkAdLoader with specific configuration.
Parameters:
context - The activity context used to retrieve the application context.

Method Detail

setNativeBulkAdLoadListener

public void setNativeBulkAdLoadListener(@Nullable
                                        NativeBulkAdLoadListener listener)
Register a callback for listening native bulk ad loader.
Parameters:
listener - an NativeBulkAdLoadListener object that handles lifecycle native ads.

loadAds

public void loadAds(@NonNull
                    NativeAdRequestConfiguration nativeAdRequestConfiguration,
                    int adsCount)
Start loading the native ads by NativeAdRequestConfiguration on a background thread.
Parameters:
nativeAdRequestConfiguration - an object of the NativeAdRequestConfiguration class with data for a targeted ad request.

cancelLoading

public void cancelLoading()
Cancel bulk ad loading.