AdSize

The AdSize class encapsulates the width and height dimensions of an ad.

Extends:java.lang.Object
Implements:-
Package:com.mustamara.yaftamobile.sdk

Constants

FLEXIBLE

Defines an ad size to be dynamically set by the SDK.

public static final AdSize FLEXIBLE
S728X90

Defines an ad size to be 728 x 90 px.

public static final AdSize S728X90
S468X60

Defines an ad size to be 468 x 60 px.

public static final AdSize S468X60
S320X50

Defines an ad size to be 320 x 50 px.

public static final AdSize S350X50
S300X50

Defines an ad size to be 300 x 50 px.

public static final AdSize S300X50

Constructors

AdSize

Constructs 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|

Public Methods

getHeight

Gets the height of this ad size.

public int getHeight()

|Parameter|Description| |-|-| |||

Returns

Height of this ad size

getWidth

Gets the width of this ad size.

public int getWidth()

|Parameter | Description| |-|-| |||

Returns

Width of this ad size

isFlexibleSize

Gets whether the ad size is flexible.

public Boolean isFlexibleSize()

|Parameter | Description| |-|-| |||

Returns

true if the ad size is flexible and false otherwise.

equals

Check 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.

toString

Return 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.