java.lang.Object | |
↳ | com.urbanairship.iam.modal.ModalDisplayContent.Builder |
Display Content Builder.
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Adds a button info.
buttonInfo | Adds a button to the message. |
---|
Builds the modal display content.
IllegalArgumentException | If more than 2 buttons are defined, or if both the heading and body are missing. |
---|
Enables the modal dialog to display as fullscreen. The modal will display as fullscreen if enabled and and the bool resource `ua_iam_modal_allow_fullscreen_display` is true. `ua_iam_modal_allow_fullscreen_display` defaults to true when the screen width is less than 480dps.
isFullscreenDisplayAllowed | true to allow displaying the iam as fullscreen,
otherwise false . |
---|
Sets the background color. Defaults to white.
color | The background color. |
---|
Sets the message's body.
body | The message's body. |
---|
Sets the border radius in dps. Defaults to 0.
borderRadius | The border radius. |
---|
Sets the button layout.
buttonLayout | The button layout. |
---|
Sets the message's buttons.
buttons | A list of button infos. |
---|
Sets the dismiss button color. Defaults to black.
color | The dismiss button color. |
---|
Sets the footer button.
footer | The footer button info. |
---|
Sets the message's heading.
heading | The message's heading. |
---|
Sets the media.
media | The media info. |
---|
Sets the template. Defaults to TEMPLATE_HEADER_MEDIA_BODY
.
template | The message's template. |
---|