Managing Message
Cancel Media Upload#
Using the SDK.cancelMediaUpload() method to cancel or pause an in-progress upload that hasn't yet finished. Once the media upload has been successfully cancelled or paused, you will receive a success response.
Request Params#
| Status | Description | Type | Required |
|---|---|---|---|
| msgId | Message ID for the Message | String | true |
Response Format#
caution
You cannot cancel a media upload once you receive a success or error callback.
Resume Media Upload#
Use below method to resume the media upload.
Request Params#
| Status | Description | Type | Required |
|---|---|---|---|
| msgId | Message ID for the Message | String | true |
| onResuming | Resuming call back | function | true |
| onSuccess | Resuming uploaded success call back | function | true |
| onError | Resuming error call back | function | true |
Refer Here to know more about resume media upload success. You are the same success callback response for the Send Media File Message method.
Cancel Media Download#
Using the SDK.cancelMediaDownload() method to cancel or pause an in-progress download that hasn't yet finished. Once the media download has been successfully cancelled or paused, you will receive a success response.
Request Params#
| Status | Description | Type | Required |
|---|---|---|---|
| msgId | Message ID for the Message | String | true |
Response Format#
caution
You cannot cancel a media download once you receive a success or error callback.
Resume Media Download#
Use below method to resume the media download.
Request Params#
| Status | Description | Type | Required |
|---|---|---|---|
| msgId | Message ID for the Message | String | true |
| onResuming | Resuming call back | function | true |
| onSuccess | Resuming uploaded success call back | function | true |
| onError | Resuming error call back | function | true |
Refer Here to know more about resume media download success. You are the same success callback response for the Download Media method.