Package com.yandex.mobile.ads.nativeads
Class NativeBulkAdLoader
-
- All Implemented Interfaces:
@MainThread() public final class NativeBulkAdLoader
Class containing controls for bulk request ad loading.
-
-
Constructor Summary
Constructors Constructor Description NativeBulkAdLoader(Context context)
-
Method Summary
Modifier and Type Method Description final Unit
setNativeBulkAdLoadListener(NativeBulkAdLoadListener listener)
Register a callback for listening native bulk ad loader. final Unit
loadAds(NativeAdRequestConfiguration nativeAdRequestConfiguration, Integer adsCount)
Start loading the native ads by NativeAdRequestConfiguration on a background thread. final Unit
cancelLoading()
Cancel bulk ad loading. -
-
Constructor Detail
-
NativeBulkAdLoader
NativeBulkAdLoader(Context context)
- Parameters:
context
- The activity context used to retrieve the application context.
-
-
Method Detail
-
setNativeBulkAdLoadListener
final Unit setNativeBulkAdLoadListener(NativeBulkAdLoadListener listener)
Register a callback for listening native bulk ad loader.
- Parameters:
listener
- an NativeBulkAdLoadListener object that handles lifecycle native ads.
-
loadAds
final Unit loadAds(NativeAdRequestConfiguration nativeAdRequestConfiguration, Integer 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
final Unit cancelLoading()
Cancel bulk ad loading.
-
-
-
-