-
- All Implemented Interfaces:
@MainThread() public class NativeBulkAdLoader
Class containing controls for bulk request ad loading.
-
-
Constructor Summary
Constructors Constructor Description NativeBulkAdLoader(Context context)Constructs a new NativeBulkAdLoader with specific configuration.
-
Method Summary
Modifier and Type Method Description voidsetNativeBulkAdLoadListener(@Nullable() NativeBulkAdLoadListener listener)Register a callback for listening native bulk ad loader. voidloadAds(@NonNull() NativeAdRequestConfiguration nativeAdRequestConfiguration, int adsCount)Start loading the native ads by NativeAdRequestConfiguration on a background thread. voidcancelLoading()Cancel bulk ad loading. -
-
Constructor Detail
-
NativeBulkAdLoader
NativeBulkAdLoader(Context context)
Constructs a new NativeBulkAdLoader with specific configuration.- Parameters:
context- The activity context used to retrieve the application context.
-
-
Method Detail
-
setNativeBulkAdLoadListener
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
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
void cancelLoading()
Cancel bulk ad loading.
-
-
-
-