public class NativeBannerAdView
extends java.lang.Object
NativeBannerAdView
provides a templated View
for a NativeBannerAd
with flexible width and height determined by NativeBannerAdView.Type
.Modifier and Type | Class and Description |
---|---|
static class |
NativeBannerAdView.Type |
Constructor and Description |
---|
NativeBannerAdView() |
Modifier and Type | Method and Description |
---|---|
static View |
render(Context context,
NativeBannerAd nativeBannerAd,
NativeBannerAdView.Type type)
Allows to create
View for specified NativeBannerAdView.Type . |
static View |
render(Context context,
NativeBannerAd nativeBannerAd,
NativeBannerAdView.Type type,
NativeAdViewAttributes attributes)
|
public static View render(Context context, NativeBannerAd nativeBannerAd, NativeBannerAdView.Type type)
View
for specified NativeBannerAdView.Type
.context
- Android Context
object.nativeBannerAd
- NativeBannerAd
for which we create the template View
.type
- NativeAdView.Type
that specifies a template.View
.java.lang.IllegalStateException
- If any of arguments is null.public static View render(Context context, NativeBannerAd nativeBannerAd, NativeBannerAdView.Type type, NativeAdViewAttributes attributes)
context
- Android Context
object.nativeBannerAd
- NativeBannerAd
for which we create the template View
.type
- NativeBannerAdView.Type
that specifies a template.attributes
- optional NativeAdViewAttributes
specification.View
.java.lang.IllegalStateException
- If any of mandatory arguments is null.