MediaView
A more recent version of this class is available. Check out the latest version.

Mediaview displays native ad media content.

MediaView can be declared and added to view:

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

Extends:RelativeLayout
Package:ads
Constructors
MediaView(Context, AttributeSet)
public MediaView(Context context, AttributeSet attributeSet)
ParameterDescription
context
attributeSet
MediaView(Context)
public MediaView(Context context)
ParameterDescription
context
Instance Methods
setNativeAd(NativeAd)
public void setNativeAd(NativeAd nativeAd)
ParameterDescription
nativeAd
isAutoplay()
public boolean isAutoplay()
setAutoplay(boolean)
public void setAutoplay(boolean autoplay)
ParameterDescription
autoplay