public enum AdSize extends Enum<AdSize>
Enum Constant and Description |
---|
BANNER_320_50
A banner size of 320 x 50 dp.
|
BANNER_HEIGHT_50
Represents a flexible banner ad size, where banner width depends on
its container width, and banner height is fixed as 50dp.
|
BANNER_HEIGHT_90
Represents a flexible banner ad size, where banner width depends on
its container width, and banner height is fixed as 90dp.
|
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 final AdSize BANNER_HEIGHT_50
public static final AdSize BANNER_HEIGHT_90
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()