MediaView

Mediaview displays native ad media content.

MediaView can be declared and added to view:

MediaView mediaView = new MediaView(context); addView(adView); mediaView.setNativeAd(nativeAd);

Расширение:RelativeLayout
Пакет:ads
Конструкторы
MediaView(Context, AttributeSet)
public MediaView(Context context, AttributeSet attributeSet)
ПараметрОписание
context
attributeSet
MediaView(Context)
public MediaView(Context context)
ПараметрОписание
context
Методы экземпляра
setNativeAd(NativeAd)
public void setNativeAd(NativeAd nativeAd)
ПараметрОписание
nativeAd
isAutoplay()
public boolean isAutoplay()
setAutoplayOnMobile(boolean)

Set the mobile autoplay setting for video ads

public void setAutoplayOnMobile(boolean autoplay)
ПараметрОписание
autoplayWhether autoplay will only be enabled on Wifi or not
setAutoplay(boolean)

Set the autoplay setting for video ads

public void setAutoplay(boolean autoplay)
ПараметрОписание
autoplayWhether autoplay is enabled or not