public static enum NativeBannerAdView.Type extends java.lang.Enum<NativeBannerAdView.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_50
Native template with height 50dp and flexible width, includes icon, title, context, and
CTA button.
|
Modifier and Type | Method and Description |
---|---|
int |
getEnumCode() |
int |
getHeight()
Gets the height of the ad control.
|
int |
getValue() |
int |
getWidth()
Gets the width of the ad control.
|
static NativeBannerAdView.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NativeBannerAdView.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NativeBannerAdView.Type HEIGHT_50
public static final NativeBannerAdView.Type HEIGHT_100
public static final NativeBannerAdView.Type HEIGHT_120
public static NativeBannerAdView.Type[] values()
for (NativeBannerAdView.Type c : NativeBannerAdView.Type.values()) System.out.println(c);
public static NativeBannerAdView.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()
public int getEnumCode()