| java.lang.Object | |
| ↳ | com.urbanairship.iam.ResolutionInfo |
Info used to generate an event when a message is finished.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| @interface | ResolutionInfo.Type | ||||||||||
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | BUTTON_INFO_KEY | Button info key. | |||||||||
| String | RESOLUTION_BUTTON_CLICK | Button click resolution. | |||||||||
| String | RESOLUTION_MESSAGE_CLICK | Message click resolution | |||||||||
| String | RESOLUTION_TIMED_OUT | Timed out resolution. | |||||||||
| String | RESOLUTION_USER_DISMISSED | User dismissed resolution. | |||||||||
| String | TYPE_KEY | Type key. | |||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static ResolutionInfo |
buttonPressed(ButtonInfo buttonInfo)
Factory method to create a resolution info for a button press.
| ||||||||||
| static ResolutionInfo |
buttonPressed(String buttonId, String buttonDescription, boolean cancel)
Factory method to create a resolution info for a button press.
| ||||||||||
| static ResolutionInfo |
dismissed()
Factory method to create a resolution info for when the user dismissed the in-app message.
| ||||||||||
| boolean | equals(Object o) | ||||||||||
| static ResolutionInfo |
fromJson(JsonValue value)
Parses an
ResolutionInfo from a JsonValue. | ||||||||||
| ButtonInfo |
getButtonInfo()
The button info.
| ||||||||||
| String |
getType()
The resolution type.
| ||||||||||
| int | hashCode() | ||||||||||
| static ResolutionInfo |
messageClicked()
Factory method to create a resolution info for when a clickable in-app message was clicked.
| ||||||||||
| static ResolutionInfo |
timedOut()
Factory method to create a resolution info for when the in-app message times out and auto dismisses.
| ||||||||||
| JsonValue |
toJsonValue()
Returns the objects represented as a JsonValue.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.urbanairship.json.JsonSerializable
| |||||||||||
Button click resolution.
Message click resolution
User dismissed resolution.
Factory method to create a resolution info for a button press.
| buttonInfo | The button info. |
|---|
Factory method to create a resolution info for a button press.
| buttonId | The button id. |
|---|---|
| buttonDescription | The button description. |
| cancel | If the button should cancel or not. |
| IllegalArgumentException | if the button info is invalid. |
|---|
Factory method to create a resolution info for when the user dismissed the in-app message.
Parses an ResolutionInfo from a JsonValue.
| value | The json value. |
|---|
| JsonException | If the resolution info was unable to be parsed. |
|---|
The button info. Only available if the type is RESOLUTION_BUTTON_CLICK.
Factory method to create a resolution info for when a clickable in-app message was clicked.
Factory method to create a resolution info for when the in-app message times out and auto dismisses.
Returns the objects represented as a JsonValue.