public class ResizeProperties
extends java.lang.Object
The resize properties object is intended to provide additional features to ad designers. The resize properties are held in a JavaScript object that can be written and read by the ad.
| Modifier and Type | Field and Description |
|---|---|
boolean |
allowOffscreen |
Enum.ResizeCustomClosePosition |
customClosePosition |
int |
height |
int |
offsetX |
int |
offsetY |
Size |
webViewSize |
int |
width |
| Constructor and Description |
|---|
ResizeProperties()
Constructs a new instance with default parameters.
|
ResizeProperties(int width,
int height,
int offsetX,
int offsetY,
Enum.ResizeCustomClosePosition customClosePosition,
boolean allowOffscreen,
Size webViewSize)
Constructs a new instance with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEqual(ResizeProperties resizeProperties)
Compares this instance with the specified object and indicates if they are equal.
|
public int width
public int height
public int offsetX
public int offsetY
public Enum.ResizeCustomClosePosition customClosePosition
public boolean allowOffscreen
public Size webViewSize
public ResizeProperties()
public ResizeProperties(int width,
int height,
int offsetX,
int offsetY,
Enum.ResizeCustomClosePosition customClosePosition,
boolean allowOffscreen,
Size webViewSize)
width - Width of creative in pixels.height - Height of creative in pixelsoffsetX - Is the horizontal delta from the banner's upper left-hand corner
where the upper left-hand corner of the expanded region should be placed; positive
integers for expand right; negative for leftoffsetY - Is the vertical delta from the banner's upper left-hand corner where
the upper left-hand corner of the expanded region should be placed; positive integers
for expand down; negative for upcustomClosePosition - either "top-left", "top-right", "center", "bottomleft",
"bottom-right","top-center", or "bottom-center" indicates the origin of the
container-supplied close event region relative to the resized creative. If not
specified or not one of these options, will default to top-rightallowOffscreen - Tells the container whether or not it should allow the resized
creative to be drawn fully/partially offscreen.
true The container should not attempt to position the resized creative.
false The container should try to reposition the resized creative to
always fit in the getMaxSize() areawebViewSize - The size of default (first part) WebView.public boolean isEqual(ResizeProperties resizeProperties)
resizeProperties - An instance of ResizeProperties to compare.true if the specified object is equal to this Object;
false otherwise.