|
|
|
|
|
Download functions use the following constants: | | | Constant | Details | Variable type |
---|
downloadNotifProgress | Download notification mode: As long as the download is in progress, a notification shows the progress and disappears when the download is complete. | DownloadParameter type | downloadNotifNone | Download notification mode: No notification is visible. | DownloadParameter type | downloadNotifProgressAndCompletion | Download notification mode: While the download is in progress, a notification shows the progress and remains visible when the download is complete. | DownloadParameter type | downloadStatusFailed | Download status: Download failed. | DownloadInfo type | downloadStatusRunning | Download status: Download in progress. | DownloadInfo type | downloadStatusPaused | Download status: Download is paused. | DownloadInfo type | downloadStatusPending | Download status: Download pending. | DownloadInfo type | downloadStatusSuccessful | Download status: Download successful. | DownloadInfo type | downloadErrorInsufficientSpace | Error encountered: Insufficient storage space. | DownloadInfo type | downloadErrorStorage | Error encountered: Storage-related error. | DownloadInfo type | downloadErrorUnknown | Error encountered: The error is unknown. | DownloadInfo type | downloadErrorFileAlreadyExists | Error encountered: URI points to an existing file. | DownloadInfo type | downloadPausedUnknown | The download is paused for an unknown reason. | DownloadInfo type | downloadPausedWaitingForNetwork | The download is paused until a network is found. | DownloadInfo type | downloadPausedWaitingForWifi | The download is paused until a Wi-Fi network is found. | DownloadInfo type | downloadPausedWaitingToRetry | The download was paused due to a network error. The system will wait before trying again. | DownloadInfo type |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|