Mediaview displays native ad media content.
MediaView can be declared and added to view:
MediaView mediaView = new MediaView(context); addView(adView); mediaView.setNativeAd(nativeAd);
Hereda de: | RelativeLayout |
Paquete: | ads |
MediaView(Context, AttributeSet)
public MediaView(Context context, AttributeSet attributeSet)
Parámetro | Descripción |
---|---|
context | |
attributeSet |
MediaView(Context)
public MediaView(Context context)
Parámetro | Descripción |
---|---|
context |
setNativeAd(NativeAd)
public void setNativeAd(NativeAd nativeAd)
Parámetro | Descripción |
---|---|
nativeAd |
isAutoplay()
public boolean isAutoplay()
setAutoplay(boolean)
public void setAutoplay(boolean autoplay)
Parámetro | Descripción |
---|---|
autoplay |