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.

Parameters:
context

An object of the Context class.

parent

An object of the ViewGroup class.

context

An object of the Context class.

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.

Parameters:
view

An object of the View class.

yandexNativeAd

An object of the YandexNativeAd class.

view

An object of the View class.

yandexNativeAd

An object of the YandexNativeAd class.

supports

public boolean supports (@NonNull final BaseNativeAd nativeAd)