ICMediaAttachment (Discontinued)

🚧

Note

Please note that we have announced end of sale for Cordova SDK. It is no longer offered as a standard Webex Connect capability.

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:

ParameterTypeDescription
idstringSpecifies the mediaId for media Attachment

setSize

This method is used to set a media file size for media attachment.

Syntax: void setSize( size)

Parameters:

ParameterTypeDescription
sizelongSpecifies the media file size for media attachment.

setURL

This method is used to set URL for media attachment.

Syntax: void setURL(url)

Parameters:

ParameterTypeDescription
urlStringSpecifies the URL for media attachment.