InAppVideoAttachment

Represents a video attachment

Represents a video attachment and inherits from InAppFileAttachment.

Properties

Properties TypeDescription
id Stringopen override var id: String
The ID of the attachment.
sizeLongopen override var size: Long
The size of the attachment.
urlURLopen override var url: URL?
The URL of the attachment.
durationLongvar duration: Long
The duration of the video is in milliseconds.
previewBitmapvar preview: Bitmap?
The preview of the video.
contentType Stringopen 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

ParametersTypeDescription
jsonObjectJSONObjectThe JSONObject to convert.