Package com.yandex.mobile.ads.nativeads
Interface SliderAd
-
public interface SliderAdInterface allows to bindSliderAdViewwith slider content,
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbindSliderAd(SliderAdView sliderAdView)Bind sliderAdView withSliderAdasset's value.java.util.List<NativeAd>getNativeAds()Ads which should be displayed in slider ad view.
-
-
-
Method Detail
-
bindSliderAd
void bindSliderAd(@NonNull SliderAdView sliderAdView) throws NativeAdExceptionBind sliderAdView withSliderAdasset's value.- Parameters:
sliderAdView- Root slider ad view, superview for each ad view. If null, does nothing.- Throws:
NativeAdException- If attempt to bind ad to view without providing view for any of required assets.
-
getNativeAds
@NonNull java.util.List<NativeAd> getNativeAds()
Ads which should be displayed in slider ad view. Each ad view should be subview of slider ad view.- Returns:
List.
-
-