InAppVideoAttachment
Represents a video attachment
Represents a video attachment and inherits from InAppFileAttachment.
Properties
| Properties | Type | Description |
|---|---|---|
| id | String | open override var id: StringThe ID of the attachment. |
| size | Long | open override var size: LongThe size of the attachment. |
| url | URL | open override var url: URL?The URL of the attachment. |
| duration | Long | var duration: LongThe duration of the video is in milliseconds. |
| preview | Bitmap | var preview: Bitmap?The preview of the video. |
| contentType | String | open override var contentType: StringThe 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 6 months ago
