java.lang.Object | |
↳ | com.urbanairship.iam.html.HtmlDisplayContent |
Display content for a TYPE_HTML
in-app message.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
class | HtmlDisplayContent.Builder | Display Content Builder. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean | equals(Object o) | ||||||||||
int |
getBackgroundColor()
Returns the background color.
| ||||||||||
float |
getBorderRadius()
Returns the border radius in dps.
| ||||||||||
int |
getDismissButtonColor()
Returns the dismiss button color.
| ||||||||||
String |
getUrl()
Returns the url.
| ||||||||||
int | hashCode() | ||||||||||
boolean |
isFullscreenDisplayAllowed()
Returns
true if the html message is allowed to be displayed as fullscreen, otherwise
false . | ||||||||||
static HtmlDisplayContent.Builder |
newBuilder()
Builder factory method.
| ||||||||||
static HtmlDisplayContent.Builder |
newBuilder(HtmlDisplayContent displayContent)
Creates a builder from existing display content.
| ||||||||||
static HtmlDisplayContent |
parseJson(JsonValue json)
Parses HTML display JSON.
| ||||||||||
JsonValue |
toJsonValue()
Returns the objects represented as a JsonValue.
| ||||||||||
String | toString() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Returns the background color.
Returns the border radius in dps.
Returns the dismiss button color.
Returns true
if the html message is allowed to be displayed as fullscreen, otherwise
false
. See setAllowFullscreenDisplay(boolean)
} for more details.
true
to allow the html message to display as full screen, otherwise false
.
Builder factory method.
Creates a builder from existing display content.
displayContent | The display content. |
---|
Parses HTML display JSON.
json | The json payload. |
---|
JsonException | If the json was unable to be parsed. |
---|
Returns the objects represented as a JsonValue.