java.lang.Object | |
↳ | com.urbanairship.iam.InAppMessage.Builder |
In-app message builder.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Builder(InAppMessage message) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
InAppMessage.Builder |
addAction(String actionName, JsonValue actionValue)
Adds an action to run when the in-app message is displayed.
| ||||||||||
InAppMessage |
build()
Builds the in-app message.
| ||||||||||
InAppMessage.Builder |
setActions(Map<String, JsonValue> actions)
Sets the actions to run when the in-app message is displayed.
| ||||||||||
InAppMessage.Builder |
setDisplayBehavior(String displayBehavior)
Sets the display behavior.
| ||||||||||
InAppMessage.Builder |
setDisplayContent(CustomDisplayContent displayContent)
Sets the custom display content and type.
| ||||||||||
InAppMessage.Builder |
setDisplayContent(BannerDisplayContent displayContent)
Sets the banner display content and type.
| ||||||||||
InAppMessage.Builder |
setDisplayContent(ModalDisplayContent displayContent)
Sets the modal display content and type.
| ||||||||||
InAppMessage.Builder |
setDisplayContent(FullScreenDisplayContent displayContent)
Sets the full screen display content and type.
| ||||||||||
InAppMessage.Builder |
setDisplayContent(HtmlDisplayContent displayContent)
Sets the html display content and type.
| ||||||||||
InAppMessage.Builder |
setExtras(JsonMap extras)
Sets the extras.
| ||||||||||
InAppMessage.Builder |
setName(String name)
Sets the in-app message name.
| ||||||||||
InAppMessage.Builder |
setReportingEnabled(boolean isReportingEnabled)
Enables/disables generating display and resolution events for the in-app message.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Adds an action to run when the in-app message is displayed.
actionName | The action name. |
---|---|
actionValue | The action value. |
Builds the in-app message.
IllegalArgumentException | If the content is missing. |
---|
Sets the actions to run when the in-app message is displayed.
actions | The action map. |
---|
Sets the display behavior.
displayBehavior | The display behavior. |
---|
Sets the custom display content and type.
displayContent | The custom display content. |
---|
Sets the banner display content and type.
displayContent | The banner display content. |
---|
Sets the modal display content and type.
displayContent | The modal display content. |
---|
Sets the full screen display content and type.
displayContent | The full screen display content. |
---|
Sets the html display content and type.
displayContent | The html display content. |
---|
Sets the extras.
extras | An extra json map. |
---|
Sets the in-app message name.
name | The message name. |
---|
Enables/disables generating display and resolution events for the in-app message.
isReportingEnabled | true to generate reporting events, otherwise false . |
---|