ICImageAttachment
Represents an image attachment.
Return Type | Method |
---|---|
ICImageAttachment | fromJSON(JSONObject jsonObj) |
Bitmap | getPreviewImage() |
void | setPreviewImage(Bitmap preview) |
fromJSON
Instantiates an ICImageAttachment from a JSONObject. The JSONObject must contain valid image attachment data.
Syntax: static ICImageAttachment fromJSON(JSONObject jsonObj)
Return Value: A new ICImageAttachment instance, or null if jsonObj is null.
Parameters:
Parameter | Type | Description |
---|---|---|
jsonObj | JSONObject | A JSONObject containing valid image attachment data. |
getPreviewImage
Gets the attachment preview image as a bitmap.
Syntax: Bitmap getPreviewImage()
Return Value: A bitmap containing the preview image, or null if there is no preview.
setPreviewImage
Sets the attachment preview image.
Syntax: void setPreviewImage(Bitmap preview)
Parameters:
Parameter | Type | Description |
---|---|---|
preview | Bitmap | A Bitmap object containing the preview image. |
Updated 12 months ago