InAppVideoAttachment
Represents a video attachment
Represents a video attachment and inherits from InAppFileAttachment.
Properties
Properties | Type | Description |
---|---|---|
id | String | open override var id: String The ID of the attachment. |
size | Long | open override var size: Long The size of the attachment. |
url | URL | open override var url: URL? The URL of the attachment. |
duration | Long | var duration: Long The duration of the video is in milliseconds. |
preview | Bitmap | var preview: Bitmap? The preview of the video. |
contentType | String | open override var contentType: String The content type of the attachment. |
Functions
toJson
Converts the video attachment to a JSONObject.
Syntax: fun toJson(): JSONObject
Return: The JSONObject converted from the video attachment.
Companion Functions
fromJson
Converts a JSONObject to a video attachment.
Syntax: fun fromJson(jsonObject: JSONObject): InAppThread
Return: The video attachment converted from the JSONObject.
Parameters
Parameters | Type | Description |
---|---|---|
jsonObject | JSONObject | The JSONObject to convert. |
Updated about 1 month ago