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. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ASPECT_LOCK_KEY | The content's aspect lock payload key | |||||||||
String | HEIGHT_KEY | The content's height payload key | |||||||||
String | REQUIRE_CONNECTIVITY | The content's require connectivity key | |||||||||
String | WIDTH_KEY | The content's width payload key |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.urbanairship.iam.DisplayContent
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean | equals(Object o) | ||||||||||
static HtmlDisplayContent |
fromJson(JsonValue value)
Parses HTML display JSON.
| ||||||||||
boolean |
getAspectRatioLock()
Gets the aspect lock when displaying the message as a dialog.
| ||||||||||
int |
getBackgroundColor()
Returns the background color.
| ||||||||||
float |
getBorderRadius()
Returns the border radius in dps.
| ||||||||||
int |
getDismissButtonColor()
Returns the dismiss button color.
| ||||||||||
long |
getHeight()
Gets the desired height when displaying the message as a dialog.
| ||||||||||
boolean |
getRequireConnectivity()
Checks if the message can be displayed or not if connectivity is unavailable.
| ||||||||||
String |
getUrl()
Returns the url.
| ||||||||||
long |
getWidth()
Gets the desired width when displaying the message as a dialog.
| ||||||||||
int | hashCode() | ||||||||||
boolean |
isFullscreenDisplayAllowed()
Returns
true if the html message is allowed to be displayed as fullscreen, otherwise
false . | ||||||||||
static HtmlDisplayContent.Builder |
newBuilder(HtmlDisplayContent displayContent)
Creates a builder from existing display content.
| ||||||||||
static HtmlDisplayContent.Builder |
newBuilder()
Builder factory method.
| ||||||||||
JsonValue |
toJsonValue()
Returns the objects represented as a JsonValue.
| ||||||||||
String | toString() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.urbanairship.json.JsonSerializable
|
The content's aspect lock payload key
The content's require connectivity key
Parses HTML display JSON.
value | The json payload. |
---|
JsonException | If the json was unable to be parsed. |
---|
Gets the aspect lock when displaying the message as a dialog.
Returns the background color.
Returns the border radius in dps.
Returns the dismiss button color.
Gets the desired height when displaying the message as a dialog.
Checks if the message can be displayed or not if connectivity is unavailable.
true
if connectivity is required, otherwise false
.
Gets the desired width when displaying the message as a dialog.
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
.
Creates a builder from existing display content.
displayContent | The display content. |
---|
Builder factory method.
Returns the objects represented as a JsonValue.