Description
Occurs when the download status or progress information is changed.
Syntax
DownloadingStateChanged (integer itemId, longlong speed, longlong received, longlong total, integer percent)
Event ID
Arguments
Argument |
Description |
---|---|
itemId |
The ID of the download item, starting from 1. |
speed |
The download speed estimated in bytes every second. This argument is reserved for later use and is always 0 now. |
received |
The size of the content that has been downloaded. |
total |
The total size of the content to be downloaded. |
percent |
A rough percentage of completion or -1 if the total size is unknown. |
Return Values
None
Usage
The DownloadingStateChanged event will be triggered for uncertain times even if the download percentage has reached 100%.
The DownloadingStateChanged event will still be triggered after PauseDownload is called.
See also