Class YandexNativeAdRenderer
com.mopub.nativeads
java.lang.Object ⇽ YandexNativeAdRenderer
public class YandexNativeAdRenderer
This class contains methods for working with an ad view.
Constructors
YandexNativeAdRenderer(@NonNull final YandexViewBinder viewBinder) |
YandexNativeAdRenderer(@NonNull final YandexViewBinder viewBinder) |
Methods
android.view.View | createAdView(@NonNull final android.content.Context context, @Nullable final android.view.ViewGroup parent) | Creates an ad view. |
void | renderAdView(@NonNull final android.view.View view, @NonNull final YandexNativeAd yandexNativeAd) | Renders an ad view. |
boolean | supports(@NonNull final BaseNativeAd nativeAd) |
android.view.View | createAdView(@NonNull final android.content.Context context, @Nullable final android.view.ViewGroup parent) | Creates an ad view. |
void | renderAdView(@NonNull final android.view.View view, @NonNull final YandexNativeAd yandexNativeAd) | Renders an ad view. |
boolean | supports(@NonNull final BaseNativeAd nativeAd) |
Constructor Detail
YandexNativeAdRenderer
public YandexNativeAdRenderer (@NonNull final YandexViewBinder viewBinder)
Method Detail
createAdView
public android.view.View createAdView (@NonNull final android.content.Context context, @Nullable final android.view.ViewGroup parent)
Creates an ad view.
context | An object of the |
parent | An object of the ViewGroup class. |
context | An object of the |
parent | An object of the ViewGroup class. |
Returns:
An ad view.
renderAdView
public void renderAdView (@NonNull final android.view.View view, @NonNull final YandexNativeAd yandexNativeAd)
Renders an ad view.
view | An object of the |
yandexNativeAd | An object of the |
view | An object of the |
yandexNativeAd | An object of the |
supports
public boolean supports (@NonNull final BaseNativeAd nativeAd)