java.lang.Object | |
↳ | com.urbanairship.iam.modal.ModalDisplayContent |
Display content for a TYPE_MODAL
in-app message.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
class | ModalDisplayContent.Builder | Display Content Builder. | |||||||||
@interface | ModalDisplayContent.Template |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | MAX_BUTTONS | Maximum number of button supported by a modal. | |||||||||
String | TEMPLATE_HEADER_BODY_MEDIA | Template with display order of header, body, media, buttons, footer. | |||||||||
String | TEMPLATE_HEADER_MEDIA_BODY | Template with display order of header, media, body, buttons, footer. | |||||||||
String | TEMPLATE_MEDIA_HEADER_BODY | Template with display order of media, header, body, buttons, footer. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.urbanairship.iam.DisplayContent
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean | equals(Object o) | ||||||||||
static ModalDisplayContent |
fromJson(JsonValue value)
Parses modal display JSON.
| ||||||||||
int |
getBackgroundColor()
Returns the background color.
| ||||||||||
TextInfo |
getBody()
Returns the optional body
TextInfo . | ||||||||||
float |
getBorderRadius()
Returns the border radius in dps.
| ||||||||||
String |
getButtonLayout()
Returns the button layout.
| ||||||||||
List<ButtonInfo> |
getButtons()
Returns the list of optional buttons.
| ||||||||||
int |
getDismissButtonColor()
Returns the dismiss button color.
| ||||||||||
ButtonInfo |
getFooter()
Returns the footer button.
| ||||||||||
TextInfo |
getHeading()
Returns the optional heading
TextInfo . | ||||||||||
MediaInfo |
getMedia()
Returns the optional
MediaInfo . | ||||||||||
String |
getTemplate()
Returns the template.
| ||||||||||
int | hashCode() | ||||||||||
boolean |
isFullscreenDisplayAllowed()
Returns
true if the modal dialog is allowed to be displayed as fullscreen, otherwise
false . | ||||||||||
static ModalDisplayContent.Builder |
newBuilder(ModalDisplayContent displayContent)
Creates a builder from existing display content.
| ||||||||||
static ModalDisplayContent.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
|
Maximum number of button supported by a modal.
Template with display order of header, body, media, buttons, footer.
Template with display order of header, media, body, buttons, footer.
Template with display order of media, header, body, buttons, footer.
Parses modal display JSON.
value | The json payload. |
---|
JsonException | If the json was unable to be parsed. |
---|
Returns the background color.
Returns the border radius in dps.
Returns the list of optional buttons.
Returns the dismiss button color.
Returns true
if the modal dialog is allowed to be displayed as fullscreen, otherwise
false
. See setAllowFullscreenDisplay(boolean)
} for more details.
true
to allow the modal dialog 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.