java.lang.Object | |
↳ | com.urbanairship.push.iam.InAppMessage.Builder |
InAppMessage Builder.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
InAppMessage.Builder()
Default constructor.
| |||||||||||
InAppMessage.Builder(InAppMessage message)
Creates a new Builder with the values of the specified message.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
InAppMessage |
create()
Creates the message.
| ||||||||||
InAppMessage.Builder |
setAlert(String alert)
Sets the message's alert.
| ||||||||||
InAppMessage.Builder |
setButtonActionValues(String buttonId, Map<String, ActionValue> actionValues)
Sets the message's button actions for a given button ID.
| ||||||||||
InAppMessage.Builder |
setButtonGroupId(String buttonGroupId)
Sets the message's button group ID.
| ||||||||||
InAppMessage.Builder |
setClickActionValues(Map<String, ActionValue> actionValues)
Sets the message's on click action values.
| ||||||||||
InAppMessage.Builder |
setDuration(Long milliseconds)
Sets the duration to show the message for.
| ||||||||||
InAppMessage.Builder |
setExpiry(Long milliseconds)
Sets the message's expiry in milliseconds.
| ||||||||||
InAppMessage.Builder |
setExtras(JsonMap extras)
Sets the message's extras.
| ||||||||||
InAppMessage.Builder |
setPosition(int position)
Sets the message's position.
| ||||||||||
InAppMessage.Builder |
setPrimaryColor(Integer color)
Sets the message's primary color.
| ||||||||||
InAppMessage.Builder |
setSecondaryColor(Integer color)
Sets the message's secondary color.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Default constructor.
Creates a new Builder with the values of the specified message.
message | The message. |
---|
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. |
---|
IllegalArgumentException | if the duration is less than or equal to 0. |
---|
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 position. Either POSITION_BOTTOM
or POSITION_TOP
are acceptable values. Any other value will result in an illegal argument exception.
position | The message's position. |
---|
IllegalArgumentException | If the position is not POSITION_BOTTOM nor POSITION_TOP .
|
---|
Sets the message's primary color.
color | The message's primary color. |
---|
Sets the message's secondary color.
color | The message's secondary color. |
---|