TTMSFNCWebBrowserDownload Class
Represents a single file download managed by the web browser, with properties to track progress and methods to control the transfer.
API unit family: TMSFNCWebBrowser
Inherits from: TCollectionItem
Syntax
TTMSFNCWebBrowserDownload = class(TCollectionItem)
Properties
| Name | Description |
|---|---|
| BytesReceived | Total bytes received so far. |
| CanResume | When True, the interrupted download can be resumed by calling Resume. |
| DataBoolean | Application-defined Boolean value for associating custom data with this download item. True when the caller has set this flag; False by default. |
| DataInteger | Application-defined integer for associating custom data with this download item. |
| DataObject | Application-defined object reference for associating custom data with this download item. |
| DataPointer | Application-defined pointer for associating custom data with this download item. |
| DataString | Application-defined string for associating custom data with this download item. |
| EstimatedEndTime | Estimated date and time when the download is expected to complete. |
| InterruptReason | Reason the download was interrupted, when State is dsInterrupted. See TTMSFNCWebBrowserDownloadInterruptReason. |
| MimeType | MIME type of the downloaded content as reported by the server. |
| ResultFilePath | Local file path where the downloaded file is saved. Can be set to redirect the destination before the download begins. |
| State | Current state of the download. See TTMSFNCWebBrowserDownloadState. |
| TotalBytes | Total expected size of the download in bytes; -1 when the server did not provide a Content-Length. |
| URI | Source URI of the file being downloaded. |
Methods
| Name | Description |
|---|---|
| Cancel | Cancels the download. The State transitions to dsCancelled. |
| Pause | Pauses a running download. The State transitions to dsInterrupted. Call Resume to continue. |
| Resume | Resumes a paused download when CanResume is True. |