"resumeDownload"
This function allows you to resume a specific download.
Synopsis
int shape.resumeDownload(uint downloadId);
Parameters
Parameter | Description |
---|---|
downloadId | The ID of the download you want to resume. This ID is provided in the downloadStatusUpdated event. |
Return Value
The function returns 0 if the download resumes successfully. If there is an error, it returns a value less than 0.
Details
This function resumes the download you specify. Only downloads with the status 4 – DownloadInterrupted can be resumed.
Once resumed, the downloadStatusUpdated event is triggered with the status 1 – DownloadInProgress.