Trait webview2_sys::ICoreWebView2DownloadStartingEventArgs[][src]

pub trait ICoreWebView2DownloadStartingEventArgs: IUnknown {
    unsafe fn get_download_operation(
        &self,
        download_operation: *mut *mut *mut ICoreWebView2DownloadOperationVTable
    ) -> HRESULT;
unsafe fn get_cancel(&self, cancel: *mut BOOL) -> HRESULT;
unsafe fn put_cancel(&self, cancel: BOOL) -> HRESULT;
unsafe fn get_result_file_path(
        &self,
        result_file_path: *mut LPWSTR
    ) -> HRESULT;
unsafe fn put_result_file_path(&self, result_file_path: LPCWSTR) -> HRESULT;
unsafe fn get_handled(&self, handled: *mut BOOL) -> HRESULT;
unsafe fn put_handled(&self, handled: BOOL) -> HRESULT;
unsafe fn get_deferral(
        &self,
        deferral: *mut *mut *mut ICoreWebView2DeferralVTable
    ) -> HRESULT; }
Expand description

Event args for the DownloadStarting event.

Required methods

Returns the ICoreWebView2DownloadOperation for the download that has started.

The host may set this flag to cancel the download. If canceled, the download save dialog is not displayed regardless of the Handled property.

Sets the Cancel property.

The path to the file. If setting the path, the host should ensure that it is an absolute path, including the file name, and that the path does not point to an existing file. If the path points to an existing file, the file will be overwritten. If the directory does not exist, it is created.

Sets the ResultFilePath property.

The host may set this flag to TRUE to hide the default download dialog for this download. The download will progress as normal if it is not canceled, there will just be no default UI shown. By default the value is FALSE and the default download dialog is shown.

Sets the Handled property.

Returns an ICoreWebView2Deferral object. Use this operation to complete the event at a later time.

Trait Implementations

A COM compatible V-Table

The interface that this interface inherits from

The associated id for this interface

Check whether a given IID is in the inheritance hierarchy of this interface

Get the vtable for a particular COM interface

Implementations on Foreign Types

Implementors