Skip to main content

TdxCloudStorage.OnItemDownload Event

Enables you to track the file download progress.

Declaration

property OnItemDownload: TItemDownloadEvent read; write;

Remarks

A file download speed depends on the file size and network connection quality. Your application cannot use a file until it downloads it completely, and this process can take a noticeable amount of time in the case of a large file. You can handle the OnItemDownload event to track the file download progress, and optionally, visualize it as a number of bytes and/or percentage/progress bar (if the connected online storage’s server provides the downloaded file’s size).

This event occurs at the start and end of a file download process, and every time the file download routine successfully retrieves a 64-kilobyte block (that is, a file chunk) from the connected server. Refer to the TItemDownloadEvent nested procedural type description that includes details on all parameters within an OnItemDownload event handler and a code example.

Note

Handle the OnItemDownloaded event to retrieve a data stream with the downloaded file’s content and load it into a control that can edit and/or display such files. To obtain information on any file download errors, handle the OnError event.

See Also