public class

HtmlDisplayContent

extends Object
implements DisplayContent
java.lang.Object
   ↳ com.urbanairship.iam.html.HtmlDisplayContent

Class Overview

Display content for a TYPE_HTML in-app message.

Summary

Nested Classes
class HtmlDisplayContent.Builder Display Content Builder. 
[Expand]
Inherited Constants
From interface com.urbanairship.iam.DisplayContent
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
From class java.lang.Object
From interface com.urbanairship.json.JsonSerializable

Public Methods

public boolean equals (Object o)

public int getBackgroundColor ()

Returns the background color.

Returns
  • The background color.

public float getBorderRadius ()

Returns the border radius in dps.

Returns
  • Border radius in dps.

public int getDismissButtonColor ()

Returns the dismiss button color.

Returns
  • The dismiss button color.

public String getUrl ()

Returns the url.

Returns
  • The url.

public int hashCode ()

public boolean isFullscreenDisplayAllowed ()

Returns true if the html message is allowed to be displayed as fullscreen, otherwise false. See setAllowFullscreenDisplay(boolean)} for more details.

Returns
  • true to allow the html message to display as full screen, otherwise false.

public static HtmlDisplayContent.Builder newBuilder ()

Builder factory method.

Returns
  • A builder instance.

public static HtmlDisplayContent.Builder newBuilder (HtmlDisplayContent displayContent)

Creates a builder from existing display content.

Parameters
displayContent The display content.
Returns
  • A builder instance.

public static HtmlDisplayContent parseJson (JsonValue json)

Parses HTML display JSON.

Parameters
json The json payload.
Returns
  • The parsed display content.
Throws
JsonException If the json was unable to be parsed.

public JsonValue toJsonValue ()

Returns the objects represented as a JsonValue.

Returns
  • The object as a JsonValue.

public String toString ()