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