| java.lang.Object | |
| ↳ | com.urbanairship.iam.LegacyInAppMessage.Builder |
InAppMessage Builder.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| LegacyInAppMessage |
build()
Builds the message.
| ||||||||||
| LegacyInAppMessage.Builder |
setAlert(String alert)
Sets the message's alert.
| ||||||||||
| LegacyInAppMessage.Builder |
setButtonActionValues(String buttonId, Map<String, JsonValue> actionValues)
Sets the message's button actions for a given button ID.
| ||||||||||
| LegacyInAppMessage.Builder |
setButtonGroupId(String buttonGroupId)
Sets the message's button group ID.
| ||||||||||
| LegacyInAppMessage.Builder |
setClickActionValues(Map<String, JsonValue> actionValues)
Sets the message's on click action values.
| ||||||||||
| LegacyInAppMessage.Builder |
setDuration(Long milliseconds)
Sets the duration to show the message for.
| ||||||||||
| LegacyInAppMessage.Builder |
setExpiry(Long milliseconds)
Sets the message's expiry in milliseconds.
| ||||||||||
| LegacyInAppMessage.Builder |
setExtras(JsonMap extras)
Sets the message's extras.
| ||||||||||
| LegacyInAppMessage.Builder | setId(String id) | ||||||||||
| LegacyInAppMessage.Builder |
setPlacement(String placement)
Sets the message's placement.
| ||||||||||
| LegacyInAppMessage.Builder |
setPrimaryColor(Integer color)
Sets the message's primary color.
| ||||||||||
| LegacyInAppMessage.Builder |
setSecondaryColor(Integer color)
Sets the message's secondary color.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Builds the message.
| IllegalArgumentException | if the duration is less than or equal to 0. |
|---|
Sets the message's alert.
| alert | The message's alert. |
|---|
Sets the message's button actions for a given button ID.
| buttonId | The button's ID. |
|---|---|
| actionValues | The button's action values. |
Sets the message's button group ID.
| buttonGroupId | The message's button group ID. |
|---|
Sets the message's on click action values.
| actionValues | The message's on click action values. |
|---|
Sets the duration to show the message for.
| milliseconds | The duration in milliseconds. |
|---|
Sets the message's expiry in milliseconds. If no expiry is set, it will default to 30 days from the creation date.
| milliseconds | The expiry date in milliseconds. |
|---|
Sets the message's extras.
| extras | The message's extras. |
|---|
Sets the message's placement.
| placement | The message's placement. |
|---|
Sets the message's primary color.
| color | The message's primary color. |
|---|
Sets the message's secondary color.
| color | The message's secondary color. |
|---|