java.lang.Object | |
↳ | com.urbanairship.iam.ButtonInfo |
In-app button display info.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
@interface | ButtonInfo.Behavior | ||||||||||
class | ButtonInfo.Builder | Button info builder class. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | BEHAVIOR_CANCEL | Cancels the in-app message's schedule when clicked. | |||||||||
String | BEHAVIOR_DISMISS | Dismisses the in-app message when clicked. | |||||||||
int | MAX_ID_LENGTH | Max button ID length. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean | equals(Object o) | ||||||||||
static List<ButtonInfo> |
fromJson(JsonList jsonList)
Parses a list of
ButtonInfo from a JsonList . | ||||||||||
static ButtonInfo |
fromJson(JsonValue value)
Parses an
ButtonInfo from a JsonValue . | ||||||||||
Map<String, JsonValue> |
getActions()
Returns the action names and values to be run when the button is clicked.
| ||||||||||
Integer |
getBackgroundColor()
Returns the button's background color.
| ||||||||||
String |
getBehavior()
Returns the button's click behavior.
| ||||||||||
Integer |
getBorderColor()
Returns the button's border color.
| ||||||||||
Float |
getBorderRadius()
Returns the border radius in dps.
| ||||||||||
String |
getId()
The button's ID.
| ||||||||||
TextInfo |
getLabel()
Returns the button's label.
| ||||||||||
int | hashCode() | ||||||||||
static ButtonInfo.Builder |
newBuilder(ButtonInfo buttonInfo)
Creates a builder from existing button info.
| ||||||||||
static ButtonInfo.Builder |
newBuilder()
Builder factory method.
| ||||||||||
JsonValue |
toJsonValue()
Returns the objects represented as a JsonValue.
| ||||||||||
String | toString() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.urbanairship.json.JsonSerializable
|
Cancels the in-app message's schedule when clicked.
Dismisses the in-app message when clicked.
Max button ID length.
Parses a list of ButtonInfo
from a JsonList
.
jsonList | The json list.. |
---|
JsonException | If the list was unable to be parsed. |
---|
Parses an ButtonInfo
from a JsonValue
.
value | The json value. |
---|
JsonException | If the button info was unable to be parsed. |
---|
Returns the action names and values to be run when the button is clicked.
Returns the button's background color.
Returns the button's click behavior.
Returns the button's border color.
Creates a builder from existing button info.
buttonInfo | The button info. |
---|
Builder factory method.
Returns the objects represented as a JsonValue.