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()
setAutoplay(boolean)
public void setAutoplay(boolean autoplay)
參數說明
autoplay