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
unsafe fn get_download_operation(
&self,
download_operation: *mut *mut *mut ICoreWebView2DownloadOperationVTable
) -> HRESULT
unsafe fn get_download_operation(
&self,
download_operation: *mut *mut *mut ICoreWebView2DownloadOperationVTable
) -> HRESULT
Returns the ICoreWebView2DownloadOperation
for the download that
has started.
unsafe fn get_cancel(&self, cancel: *mut BOOL) -> HRESULT
unsafe fn get_cancel(&self, cancel: *mut BOOL) -> HRESULT
The host may set this flag to cancel the download. If canceled, the
download save dialog is not displayed regardless of the
Handled
property.
unsafe fn put_cancel(&self, cancel: BOOL) -> HRESULT
unsafe fn put_cancel(&self, cancel: BOOL) -> HRESULT
Sets the Cancel
property.
unsafe fn get_result_file_path(&self, result_file_path: *mut LPWSTR) -> HRESULT
unsafe fn get_result_file_path(&self, result_file_path: *mut LPWSTR) -> HRESULT
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.
unsafe fn put_result_file_path(&self, result_file_path: LPCWSTR) -> HRESULT
unsafe fn put_result_file_path(&self, result_file_path: LPCWSTR) -> HRESULT
Sets the ResultFilePath
property.
unsafe fn get_handled(&self, handled: *mut BOOL) -> HRESULT
unsafe fn get_handled(&self, handled: *mut BOOL) -> HRESULT
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.
unsafe fn put_handled(&self, handled: BOOL) -> HRESULT
unsafe fn put_handled(&self, handled: BOOL) -> HRESULT
Sets the Handled
property.
unsafe fn get_deferral(
&self,
deferral: *mut *mut *mut ICoreWebView2DeferralVTable
) -> HRESULT
unsafe fn get_deferral(
&self,
deferral: *mut *mut *mut ICoreWebView2DeferralVTable
) -> HRESULT
Returns an ICoreWebView2Deferral
object. Use this operation to
complete the event at a later time.
Trait Implementations
A COM compatible V-Table
Check whether a given IID is in the inheritance hierarchy of this interface