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()
setAutoplayOnMobile(boolean)

Set the mobile autoplay setting for video ads

public void setAutoplayOnMobile(boolean autoplay)
매개변수설명
autoplayWhether autoplay will only be enabled on Wifi or not
setAutoplay(boolean)

Set the autoplay setting for video ads

public void setAutoplay(boolean autoplay)
매개변수설명
autoplayWhether autoplay is enabled or not