java.lang.Object | |
↳ | com.urbanairship.iam.html.HtmlDisplayContent.Builder |
Display Content Builder.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
HtmlDisplayContent |
build()
Builds the HTML display content.
| ||||||||||
HtmlDisplayContent.Builder |
setAllowFullscreenDisplay(boolean isFullscreenDisplayAllowed)
Enables the message to display as fullscreen.
| ||||||||||
HtmlDisplayContent.Builder |
setBackgroundColor(int color)
Sets the background color.
| ||||||||||
HtmlDisplayContent.Builder |
setBorderRadius(float borderRadius)
Sets the border radius in dps.
| ||||||||||
HtmlDisplayContent.Builder |
setDismissButtonColor(int color)
Sets the dismiss button color.
| ||||||||||
HtmlDisplayContent.Builder |
setRequireConnectivity(boolean requireConnectivity)
Sets whether the message should check connectivity before displaying.
| ||||||||||
HtmlDisplayContent.Builder |
setSize(int width, int height, boolean keepAspectRatio)
Sets the size constraint for the display content when displaying the HTML message as a dialog.
| ||||||||||
HtmlDisplayContent.Builder |
setUrl(String url)
Sets the message's URL.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Builds the HTML display content.
IllegalArgumentException | If the URL is missing. |
---|
Enables the message to display as fullscreen. The message will display as fullscreen if enabled and and the bool resource `ua_iam_html_allow_fullscreen_display` is true. `ua_iam_html_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 border radius in dps. Defaults to 0.
borderRadius | The border radius. |
---|
Sets the dismiss button color. Defaults to black.
color | The dismiss button color. |
---|
Sets whether the message should check connectivity before displaying.
requireConnectivity | true to require connectivity, otherwise false . |
---|
Sets the size constraint for the display content when displaying the HTML message as a dialog.
width | The width. Use 0 for fill. |
---|---|
height | The height. Use 0 for fill. |
keepAspectRatio | If the aspect ratio should be kept if the width or height are larger than the screen. |
Sets the message's URL.
url | The message's URL. |
---|