java.lang.Object | |
↳ | com.urbanairship.iam.LegacyInAppMessage |
Legacy in-app message model object.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
class | LegacyInAppMessage.Builder | InAppMessage Builder. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static LegacyInAppMessage |
fromPush(PushMessage pushMessage)
Creates an in-app message from a push message.
| ||||||||||
String |
getAlert()
Returns the message's alert.
| ||||||||||
Map<String, JsonValue> |
getButtonActionValues(String buttonId)
Returns the specified button's action name to action value map.
| ||||||||||
String |
getButtonGroupId()
Returns the button group ID.
| ||||||||||
Map<String, JsonValue> |
getClickActionValues()
Returns the on click action name to action value map.
| ||||||||||
Long |
getDuration()
Returns the duration in milliseconds for how long the message should be shown.
| ||||||||||
long |
getExpiry()
Returns the expiration time in milliseconds since Jan.
| ||||||||||
JsonMap |
getExtras()
Returns extras map.
| ||||||||||
String |
getId()
Returns the message's ID.
| ||||||||||
String |
getPlacement()
Returns the placement of the in-app message.
| ||||||||||
Integer |
getPrimaryColor()
Returns the message's primary color.
| ||||||||||
Integer |
getSecondaryColor()
Returns the message's secondary color.
| ||||||||||
static LegacyInAppMessage.Builder |
newBuilder()
Creates a new builder.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates an in-app message from a push message.
pushMessage | The push message. |
---|
JsonException | If the JSON payload is unable to parsed. |
---|
Returns the specified button's action name to action value map.
Returns the button group ID. The button group can be fetched from getNotificationActionGroup(String)
Returns the on click action name to action value map.
Returns the duration in milliseconds for how long the message should be shown.
Returns the expiration time in milliseconds since Jan. 1, 1970, midnight GMT.
Returns the placement of the in-app message.
Returns the message's primary color.
Returns the message's secondary color.
Creates a new builder.