public class NativeViewsFactory
extends java.lang.Object
| Constructor and Description |
|---|
NativeViewsFactory() |
| Modifier and Type | Method and Description |
|---|---|
static IconAdView |
getIconAdView(android.content.Context context)
Creates View for icon element.
|
static MediaAdView |
getMediaAdView(android.content.Context context)
Creates MediaAdView to show picture, video or scrolling cards
|
static NativeAdCardView |
getNativeAdCardView(android.content.Context context)
Creates view for inner cards element.
|
static NativeAdChoicesView |
getNativeAdChoicesView(android.content.Context context)
Creates custom View to implement AdChoices in native ads.
|
static NativeAdView |
getNativeAdView(android.content.Context context)
Creates standard native view with MediaAdView.
|
static NativeAdView |
getNativeAdViewWithExtendedCards(android.content.Context context)
Creates standard native view with scrolling horizontally cards inside.
|
static NativeBannerAdView |
getNativeBannerAdView(android.content.Context context)
Creates small Native Ads view.
|
static PromoCardRecyclerView |
getPromoCardRecyclerView(android.content.Context context)
Creates RecyclerView to use horizontal scrolling cards.
|
@NonNull public static NativeAdCardView getNativeAdCardView(@NonNull android.content.Context context)
context - app contextPromoCardRecyclerView.PromoCardAdapter@NonNull public static NativeAdView getNativeAdView(@NonNull android.content.Context context)
NativeAdView uses MediaAdView to show
video, picture or scrolling horizontally cards, contained picture only. If need to show more
extended cards, use getNativeAdViewWithExtendedCards(Context)context - app contextNativeAdView@NonNull public static NativeAdView getNativeAdViewWithExtendedCards(@NonNull android.content.Context context)
getNativeAdView(Context), but current method provides more
extended cards.context - app contextNativeAdView@NonNull public static MediaAdView getMediaAdView(@NonNull android.content.Context context)
context - app contextMediaAdView@NonNull public static NativeBannerAdView getNativeBannerAdView(@NonNull android.content.Context context)
NativeAdView it isn't contain MediaAdView and
has smaller heightcontext - app contextNativeBannerAdView@NonNull public static PromoCardRecyclerView getPromoCardRecyclerView(@NonNull android.content.Context context)
context - app contextPromoCardRecyclerView@NonNull public static IconAdView getIconAdView(@NonNull android.content.Context context)
context - app contextIconAdView@NonNull public static NativeAdChoicesView getNativeAdChoicesView(@NonNull android.content.Context context)
context - app contextNativeAdChoicesView