public static enum NativeAdView.Type extends java.lang.Enum<NativeAdView.Type>
Enum Constant and Description |
---|
HEIGHT_100
Native template with height 100dp and flexible width, includes icon, title, context, and
CTA button.
|
HEIGHT_120
Native template with height 120dp and flexible width, includes icon, title, context,
description, and CTA button.
|
HEIGHT_300
Native template with height 300dp and flexible width, includes image, icon, title,
context, and CTA button.
|
HEIGHT_400
Native template with height 400dp and flexible width, includes image, icon, title,
subtitle, description, context, and CTA button.
|
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
Gets the height of the ad control.
|
int |
getValue() |
int |
getWidth()
Gets the width of the ad control.
|
static NativeAdView.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NativeAdView.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NativeAdView.Type HEIGHT_100
public static final NativeAdView.Type HEIGHT_120
public static final NativeAdView.Type HEIGHT_300
public static final NativeAdView.Type HEIGHT_400
public static NativeAdView.Type[] values()
for (NativeAdView.Type c : NativeAdView.Type.values()) System.out.println(c);
public static NativeAdView.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getWidth()
public int getHeight()
public int getValue()