InAppImageAttachment
Represents an image attachment.
Represents an image attachment and inherits from InAppFileAttachment.
Properties
| Properties | Type | Description | 
|---|---|---|
| id | String | The ID of the attachment. open override var id: String | 
| size | Long | The size of the image attachment. open override var size: Long | 
| url | URL | The URL of the image attachment. open override var url: URL? | 
| preview | Bitmap | The preview of the image. var preview: Bitmap? | 
| contentType | String | The content type of the attachment. open override var contentType: String | 
Functions
toJson
Converts the image attachment to a JSONObject.
Syntax:  fun toJson(): JSONObject
Return Value: The JSONObject converted from the image attachment.
Companion Functions
fromJson
Converts a JSONObject to an image attachment.
Syntax: fun fromJson(jsonObject: JSONObject): InAppThread
Return Value The image attachment was converted from the JSONObject.
Parameters:
| Parameters | Type | Description | 
|---|---|---|
| jsonObject | JSONObject | The JSONObject to convert. | 
Updated 6 months ago
