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);

Mở rộng:RelativeLayout
Gói:ads
Xây dựng
MediaView(Context, AttributeSet)
public MediaView(Context context, AttributeSet attributeSet)
Thông sốMô tả
context
attributeSet
MediaView(Context)
public MediaView(Context context)
Thông sốMô tả
context
Phương thức thực thể
setNativeAd(NativeAd)
public void setNativeAd(NativeAd nativeAd)
Thông sốMô tả
nativeAd
isAutoplay()
public boolean isAutoplay()
setAutoplayOnMobile(boolean)

Set the mobile autoplay setting for video ads

public void setAutoplayOnMobile(boolean autoplay)
Thông sốMô tả
autoplayWhether autoplay will only be enabled on Wifi or not
setAutoplay(boolean)

Set the autoplay setting for video ads

public void setAutoplay(boolean autoplay)
Thông sốMô tả
autoplayWhether autoplay is enabled or not