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 |