MediaView
Une version plus récente de cette classe est disponible. Rendez-vous sur la dernière 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);

Prolonge :RelativeLayout
Package :ads
Constructeurs
MediaView(Context, AttributeSet)
public MediaView(Context context, AttributeSet attributeSet)
ParamètreDescription
context
attributeSet
MediaView(Context)
public MediaView(Context context)
ParamètreDescription
context
Méthodes d’instance
setNativeAd(NativeAd)
public void setNativeAd(NativeAd nativeAd)
ParamètreDescription
nativeAd
isAutoplay()
public boolean isAutoplay()
setAutoplayOnMobile(boolean)

Set the mobile autoplay setting for video ads

public void setAutoplayOnMobile(boolean autoplay)
ParamètreDescription
autoplayWhether autoplay will only be enabled on Wifi or not
setAutoplay(boolean)

Set the autoplay setting for video ads

public void setAutoplay(boolean autoplay)
ParamètreDescription
autoplayWhether autoplay is enabled or not