public enum AdSize extends Enum<AdSize>
Enum Constant and Description |
---|
BANNER_320_50
A banner size of 320 x 50 dp.
|
INTERSTITIAL
A full screen interstitial size.
|
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
Gets the height of the ad control.
|
int |
getWidth()
Gets the width of the ad control.
|
static AdSize |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AdSize[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AdSize BANNER_320_50
public static final AdSize INTERSTITIAL
public static AdSize[] values()
for (AdSize c : AdSize.values()) System.out.println(c);
public static AdSize valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic int getWidth()
public int getHeight()