The Download class returns the properties that were set statically when a download was defined using the HTTP or FTP protocol, or are set interactively when a file is actively downloaded.
The Download class has these properties:
| Property | Data type | Description |
|---|---|---|
| Current | Long | The number of bytes already downloaded is read out. |
| ErrorText | String | The error text is read out. |
| Key | String | Read out the key. |
| Path | String | The path where the download file was saved is read. |
| Size | Long | The number of bytes that have to be downloaded is read out. |
| State | Integer | The status of the download is read out. |
| Type | Integer | The type of the download is read out. |
| Url | String | The URL specified in the function DownloadManager.Add(URL, optional key) is read out. |
Table 24.2.6.1.1 : Properties of the class Download
Notes:
For the download status, these integer constants are returned:
Download.NotReady (0), Download.Ready (1), Download.Downloading (2), Download.Finnish (3), Download.Error (4).
The Download class has neither methods nor events.