[−][src]Trait webview2_sys::ICoreWebView2NavigationStartingEventArgs
Event args for the NavigationStarting event.
Required methods
unsafe fn get_uri(&self, uri: *mut LPWSTR) -> HRESULT
The uri of the requested navigation.
unsafe fn get_is_user_initiated(&self, is_user_initiated: *mut BOOL) -> HRESULT
True when the navigation was initiated through a user gesture as opposed to programmatic navigation.
unsafe fn get_is_redirected(&self, is_redirected: *mut BOOL) -> HRESULT
True when the navigation is redirected.
unsafe fn get_request_headers(
&self,
request_headers: *mut *mut *mut ICoreWebView2HttpRequestHeadersVTable
) -> HRESULT
&self,
request_headers: *mut *mut *mut ICoreWebView2HttpRequestHeadersVTable
) -> HRESULT
The HTTP request headers for the navigation. Note, you cannot modify the HTTP request headers in a NavigationStarting event.
unsafe fn get_cancel(&self, cancel: *mut BOOL) -> HRESULT
The host may set this flag to cancel the navigation. If set, it will be as if the navigation never happened and the current page's content will be intact. For performance reasons, GET HTTP requests may happen, while the host is responding. This means cookies can be set and used part of a request for the navigation.
unsafe fn put_cancel(&self, cancel: BOOL) -> HRESULT
Set the Cancel property.
unsafe fn get_navigation_id(&self, navigation_id: *mut UINT64) -> HRESULT
The ID of the navigation.
Trait Implementations
impl ComInterface for dyn ICoreWebView2NavigationStartingEventArgs[src]
type VTable = ICoreWebView2NavigationStartingEventArgsVTable
A COM compatible V-Table
type Super = dyn IUnknown
The interface that this interface inherits from
const IID: IID[src]
fn is_iid_in_inheritance_chain(riid: &GUID) -> bool[src]
impl<C: ICoreWebView2NavigationStartingEventArgs> ProductionComInterface<C> for dyn ICoreWebView2NavigationStartingEventArgs[src]
Implementations on Foreign Types
impl<T: ICoreWebView2NavigationStartingEventArgs + ComInterface + ?Sized> ICoreWebView2NavigationStartingEventArgs for ComRc<T>[src]
unsafe fn get_uri(&self, uri: *mut LPWSTR) -> HRESULT[src]
unsafe fn get_is_user_initiated(&self, is_user_initiated: *mut BOOL) -> HRESULT[src]
unsafe fn get_is_redirected(&self, is_redirected: *mut BOOL) -> HRESULT[src]
unsafe fn get_request_headers(
&self,
request_headers: *mut *mut *mut ICoreWebView2HttpRequestHeadersVTable
) -> HRESULT[src]
&self,
request_headers: *mut *mut *mut ICoreWebView2HttpRequestHeadersVTable
) -> HRESULT
unsafe fn get_cancel(&self, cancel: *mut BOOL) -> HRESULT[src]
unsafe fn put_cancel(&self, cancel: BOOL) -> HRESULT[src]
unsafe fn get_navigation_id(&self, navigation_id: *mut UINT64) -> HRESULT[src]
impl<T: ICoreWebView2NavigationStartingEventArgs + ComInterface + ?Sized> ICoreWebView2NavigationStartingEventArgs for ComPtr<T>[src]
unsafe fn get_uri(&self, uri: *mut LPWSTR) -> HRESULT[src]
unsafe fn get_is_user_initiated(&self, is_user_initiated: *mut BOOL) -> HRESULT[src]
unsafe fn get_is_redirected(&self, is_redirected: *mut BOOL) -> HRESULT[src]
unsafe fn get_request_headers(
&self,
request_headers: *mut *mut *mut ICoreWebView2HttpRequestHeadersVTable
) -> HRESULT[src]
&self,
request_headers: *mut *mut *mut ICoreWebView2HttpRequestHeadersVTable
) -> HRESULT