public static class ImageMessage.Button
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
ImageMessage.Button.Layout
Layout data for a button.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Button(org.json.JSONObject sprite,
org.json.JSONObject layoutLandscape,
org.json.JSONObject layoutPortrait) |
| Modifier and Type | Method and Description |
|---|---|
void |
init(int orientation,
com.deltadna.android.sdk.ImageMessage.Background.Layout portraitBg,
com.deltadna.android.sdk.ImageMessage.Background.Layout landscapeBg)
Initialises the button to the given orientation and landscape/portrait layouts.
|
ImageMessage.Button.Layout |
layout(int orientation)
Returns the layout for the specified orientation.
|
protected Button(org.json.JSONObject sprite,
org.json.JSONObject layoutLandscape,
org.json.JSONObject layoutPortrait)
throws org.json.JSONException
org.json.JSONExceptionpublic ImageMessage.Button.Layout layout(int orientation)
orientation - The requested orientation.public void init(int orientation,
com.deltadna.android.sdk.ImageMessage.Background.Layout portraitBg,
com.deltadna.android.sdk.ImageMessage.Background.Layout landscapeBg)
orientation - The current device orientation.portraitBg - The portrait popup layout.landscapeBg - The landscape popup layout.