The AdSize class encapsulates the width and height dimensions of an ad.
| Extends: | java.lang.Object |
| Implements: | - |
| Package: | com.mustamara.yaftamobile.sdk |
FLEXIBLEDefines an ad size to be dynamically set by the SDK.
public static final AdSize FLEXIBLE
S728X90Defines an ad size to be 728 x 90 px.
public static final AdSize S728X90
S468X60Defines an ad size to be 468 x 60 px.
public static final AdSize S468X60
S320X50Defines an ad size to be 320 x 50 px.
public static final AdSize S350X50
S300X50Defines an ad size to be 300 x 50 px.
public static final AdSize S300X50
AdSizeConstructs an ad size with a specified width and height.
public AdSize(int width, int height)
|Parameter | Description| |-|-| |width|The width of the ad size| |height| The height of the ad size|
getHeightGets the height of this ad size.
public int getHeight()
|Parameter|Description| |-|-| |||
Returns
Height of this ad size
getWidthGets the width of this ad size.
public int getWidth()
|Parameter | Description| |-|-| |||
Returns
Width of this ad size
isFlexibleSizeGets whether the ad size is flexible.
public Boolean isFlexibleSize()
|Parameter | Description| |-|-| |||
Returns
true if the ad size is flexible and false otherwise.
equalsCheck if this ad size is equal to the specified object.
public boolean equals(Object obj)
|Parameter | Description| |-|-| |obj|The AdSize to compare this AdSize to.|
Returns
true if the objects were equal and false otherwise.
toStringReturn the ad size represented as a string with the format “WxH” or “FLEXIBLE”.
public String toString()
|Parameter | Description| |-|-| |||
Returns
String representation of this ad size.