The OpenD Programming Language

ICoreWebView2NavigationStartingEventArgs

Undocumented in source.

Members

Functions

get_Cancel
HRESULT get_Cancel(BOOL* cancel)

The host may set this flag to cancel the navigation. If set, the navigation is not longer present and the content of the current page is intact. For performance reasons, GET HTTP requests may happen, while the host is responding. You may set cookies and use part of a request for the navigation. Cancellation for navigation to about:blank or frame navigation to srcdoc is not supported. Such attempts are ignored. A cancelled navigation will fire a NavigationCompleted event with a WebErrorStatus of COREWEBVIEW2_WEB_ERROR_STATUS_OPERATION_CANCELED.

get_IsRedirected
HRESULT get_IsRedirected(BOOL* isRedirected)

TRUE when the navigation is redirected.

get_IsUserInitiated
HRESULT get_IsUserInitiated(BOOL* isUserInitiated)

TRUE when the navigation was initiated through a user gesture as opposed to programmatic navigation by page script. Navigations initiated via WebView2 APIs are considered as user initiated.

get_NavigationId
HRESULT get_NavigationId(UINT64* navigationId)

The ID of the navigation.

get_RequestHeaders
HRESULT get_RequestHeaders(ICoreWebView2HttpRequestHeaders* requestHeaders)

The HTTP request headers for the navigation.

get_Uri
HRESULT get_Uri(LPWSTR* uri)

The uri of the requested navigation.

put_Cancel
HRESULT put_Cancel(BOOL cancel)

Sets the Cancel property.

Meta