public class POBMRAIDUtil
extends java.lang.Object
| Constructor and Description |
|---|
POBMRAIDUtil() |
| Modifier and Type | Method and Description |
|---|---|
protected static org.json.JSONObject |
getHeightWidthJson(int width,
int height)
Generate Json of height, width for given values
|
protected static java.lang.String |
getMRAIDEnvironment(java.lang.String appId,
java.lang.String deviceId,
java.lang.Boolean lmt,
java.lang.Boolean coppa)
Returns the environment variable string to be injected in mraid.
|
protected static org.json.JSONObject |
getRectJson(int x,
int y,
int width,
int height)
Generate JSON Position with height width for given coordinates
|
protected static POBViewRect |
getResizeValues(int offsetX,
int offsetY,
int width,
int height,
boolean allowOffscreen,
POBViewRect defaultPosition,
int closeBtnWidth,
int closeBtnHeight)
Returns the resized view based on the provided details
|
@NonNull
protected static java.lang.String getMRAIDEnvironment(@Nullable
java.lang.String appId,
@Nullable
java.lang.String deviceId,
@Nullable
java.lang.Boolean lmt,
@Nullable
java.lang.Boolean coppa)
appId - Application iddeviceId - Device idlmt - LMT statecoppa - COPPA state@NonNull
protected static org.json.JSONObject getRectJson(int x,
int y,
int width,
int height)
x - position of viewy - position of viewwidth - of viewheight - of view@NonNull
protected static org.json.JSONObject getHeightWidthJson(int width,
int height)
width - of Viewheight - of View@NonNull protected static POBViewRect getResizeValues(int offsetX, int offsetY, int width, int height, boolean allowOffscreen, @NonNull POBViewRect defaultPosition, int closeBtnWidth, int closeBtnHeight)
offsetX - position of viewoffsetY - position of viewwidth - of viewheight - of viewallowOffscreen - State of the view to be shown outside of the screendefaultPosition - Default position of the resized viewcloseBtnWidth - Width of the close buttoncloseBtnHeight - Height of the close button