Cancels the download. If canceled, the default download dialog shows that the download was canceled. Host should set the Cancel property from ICoreWebView2SDownloadStartingEventArgs if the download should be canceled without displaying the default download dialog.
Pauses the download. If paused, the default download dialog shows that the download is paused. No effect if download is already paused. Pausing a download changes the state to COREWEBVIEW2_DOWNLOAD_STATE_INTERRUPTED with InterruptReason set to COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_USER_PAUSED.
Resumes a paused download. May also resume a download that was interrupted for another reason, if CanResume returns true. Resuming a download changes the state from COREWEBVIEW2_DOWNLOAD_STATE_INTERRUPTED to COREWEBVIEW2_DOWNLOAD_STATE_IN_PROGRESS.
Add an event handler for the BytesReceivedChanged event.
Add an event handler for the EstimatedEndTimeChanged event.
Add an event handler for the StateChanged event.
The number of bytes that have been written to the download file.
Returns true if an interrupted download can be resumed. Downloads with the following interrupt reasons may automatically resume without you calling any methods: COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_NO_RANGE, COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_HASH_MISMATCH, COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_TOO_SHORT. In these cases download progress may be restarted with BytesReceived reset to 0.
The Content-Disposition header value from the download's HTTP response.
The estimated end time in ISO 8601 Date and Time Format.
The reason why connection with file host was broken.
MIME type of the downloaded content.
The absolute path to the download file, including file name. Host can change this from ICoreWebView2DownloadStartingEventArgs.
The state of the download. A download can be in progress, interrupted, or completed. See COREWEBVIEW2_DOWNLOAD_STATE for descriptions of states.
The expected size of the download in total number of bytes based on the HTTP Content-Length header. Returns -1 if the size is unknown.
The URI of the download.
Remove an event handler previously added with add_BytesReceivedChanged.
Remove an event handler previously added with add_EstimatedEndTimeChanged.
Remove an event handler previously added with add_StateChanged.