ICInAppNotificationDisplay

The ICInAppNotificationDisplay class is responsible for handling the display properties of in-app notifications. It includes methods to set and get the type of notification and whether it is expandable.

Methods

getType

Gets the type of the in-app notification

Syntax: public ICInAppNotificationType getType()

Returns Returns the type of the in-app notification

isExpandable

Checks if the in-app notification is expandable.

Syntax: public boolean isExpandable()

Returns Returns True if the notification is expandable, false otherwise.

fromJSON

Instantiates an ICInAppNotificationDisplay instance from a JSONObject. The JSONObject must contain valid thread data.

Syntax: public static ICInAppNotificationDisplay fromJSON(JSONObject jsonObject)

Return Value: A new ICInAppNotificationDisplay instance. Returns null if jsonObj is null.

Parameters:

ParameterTypeDescription
jsonObjJSONObjectThe JSON object containing the in-app notification display properties.

toJSON

Returns a JSON representation of the in-app notification display.

Syntax: JSONObject toJSON()

Return Value: InApp notification display data as a JSONObject