Android SDK Version
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<NativeBannerAdView.Type>
Enclosing class:

public static enum NativeBannerAdView.Type
extends java.lang.Enum<NativeBannerAdView.Type>
Since:
4.99
Enum Constant Summary
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.
Method Summary
Modifier and TypeMethod and Description
intgetEnumCode() 
intgetHeight()
Gets the height of the ad control.
intgetValue() 
intgetWidth()
Gets the width of the ad control.
static NativeBannerAdView.TypevalueOf(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.
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
Enum Constant Detail

HEIGHT_50

public static final NativeBannerAdView.Type HEIGHT_50
Native template with height 50dp and flexible width, includes icon, title, context, and CTA button.

HEIGHT_100

public static final NativeBannerAdView.Type HEIGHT_100
Native template with height 100dp and flexible width, includes icon, title, context, and CTA button.

HEIGHT_120

public static final NativeBannerAdView.Type HEIGHT_120
Native template with height 120dp and flexible width, includes icon, title, context, description, and CTA button.
Method Detail

values

public static NativeBannerAdView.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (NativeBannerAdView.Type c : NativeBannerAdView.Type.values())
    System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static NativeBannerAdView.Type valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getWidth

public int getWidth()
Gets the width of the ad control.
Returns:
width of the ad control in DP

getHeight

public int getHeight()
Gets the height of the ad control.
Returns:
height of the ad control in DP

getValue

public int getValue()

getEnumCode

public int getEnumCode()