Package com.yandex.mobile.ads.nativeads
Class SliderAdLoader
-
- All Implemented Interfaces:
public final class SliderAdLoaderClass containing controls for slider ad loading.
-
-
Constructor Summary
Constructors Constructor Description SliderAdLoader(Context context)
-
Method Summary
Modifier and Type Method Description final UnitsetSliderAdLoadListener(SliderAdLoadListener listener)Register a callback for listening native ad loader. final UnitloadSlider(NativeAdRequestConfiguration nativeAdRequestConfiguration)Start loading the native ad unit by AdRequest on a background thread. final UnitcancelLoading()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
@MainThread() 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.
-
-
-
-