Mediaview displays native ad media content.
MediaView can be declared and added to view:
MediaView mediaView = new MediaView(context); addView(adView); mediaView.setNativeAd(nativeAd);
Estende: | RelativeLayout |
Pacchetto: | ads |
MediaView(Context, AttributeSet)
public MediaView(Context context, AttributeSet attributeSet)
Parametro | Descrizione |
---|---|
context | |
attributeSet |
MediaView(Context)
public MediaView(Context context)
Parametro | Descrizione |
---|---|
context |
setNativeAd(NativeAd)
public void setNativeAd(NativeAd nativeAd)
Parametro | Descrizione |
---|---|
nativeAd |