ICMediaAttachment
This JS class exposes data relating to media file attachments that are received through In-app or Push, also used to attach media files to outgoing In-app messages.
getMediaId
This method is used to get the mediaId for media attachment.
Syntax: String getMediaId()
Return Value: Returns the mediaId for media attachment.
getSize
This method is used to get the media file size for media attachment.
Syntax: long getSize()
Return Value: Returns the media file size for media attachment.
getURL
This method is used to get the URL for media attachment.
Syntax: String getURL()
Return Value: Returns the URL for media attachment.
setMediaId
This method is used to set mediaId for media attachment.
Syntax: void setMediaId(String id)
Parameters:
Parameter | Type | Description |
---|---|---|
id | string | Specifies the mediaId for media Attachment |
setSize
This method is used to set a media file size for media attachment.
Syntax: void setSize( size)
Parameters:
Parameter | Type | Description |
---|---|---|
size | long | Specifies the media file size for media attachment. |
setURL
This method is used to set URL for media attachment.
Syntax: void setURL(url)
Parameters:
Parameter | Type | Description |
---|---|---|
url | String | Specifies the URL for media attachment. |
Updated about 1 year ago