Enum Constant and Description |
---|
BANNER_320_50
Deprecated.
|
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.
|
RECTANGLE_HEIGHT_250
Represents a flexible rectangle ad size, where width depends on
its container width, and height is fixed as 250dp.
|
Modifier and Type | Method and Description |
---|---|
static AdSize |
fromWidthAndHeight(int width,
int height) |
int |
getHeight()
Gets the height of the ad control.
|
int |
getWidth()
Gets the width of the ad control.
|
static AdSize |
valueOf(java.lang.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.
|
@Deprecated 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 final AdSize RECTANGLE_HEIGHT_250
public static AdSize[] values()
for (AdSize c : AdSize.values()) System.out.println(c);
public static AdSize 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 static AdSize fromWidthAndHeight(int width, int height)