-
- All Implemented Interfaces:
@MainThread() public class SliderAdLoader
Class containing controls for slider ad loading.
-
-
Constructor Summary
Constructors Constructor Description SliderAdLoader(Context context)Constructs a new SliderAdLoader with specific configuration.
-
Method Summary
Modifier and Type Method Description voidsetSliderAdLoadListener(@Nullable() SliderAdLoadListener listener)Register a callback for listening native ad loader. voidloadSlider(@NonNull() NativeAdRequestConfiguration nativeAdRequestConfiguration)Start loading the native ad unit by AdRequest on a background thread. voidcancelLoading()Cancel loading the native ad. -
-
Constructor Detail
-
SliderAdLoader
SliderAdLoader(Context context)
Constructs a new SliderAdLoader with specific configuration.- Parameters:
context- The activity context used to retrieve the application context.
-
-
Method Detail
-
setSliderAdLoadListener
void setSliderAdLoadListener(@Nullable() SliderAdLoadListener listener)
Register a callback for listening native ad loader.
- Parameters:
listener- an SliderAdLoadListener object that handles lifecycle native ad unit.
-
loadSlider
void loadSlider(@NonNull() 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
void cancelLoading()
Cancel loading the native ad.
-
-
-
-