ICoreWebView2LaunchingExternalUriSchemeEventArgs

Undocumented in source.

Members

Functions

GetDeferral
HRESULT GetDeferral(ICoreWebView2Deferral* value)

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

get_Cancel
HRESULT get_Cancel(BOOL* value)

The event handler may set this property to TRUE to cancel the external URI scheme launch. If set to TRUE, the external URI scheme will not be launched, and the default dialog is not displayed. This property can be used to replace the normal handling of launching an external URI scheme. The initial value of the Cancel property is FALSE.

get_InitiatingOrigin
HRESULT get_InitiatingOrigin(LPWSTR* value)

The origin initiating the external URI scheme launch. The origin will be an empty string if the request is initiated by calling CoreWebView2.Navigate on the external URI scheme. If a script initiates the navigation, the InitiatingOrigin will be the top-level document's Source, for example, if window.location is set to `"calculator://", the InitiatingOrigin will be set to calculator://. If the request is initiated from a child frame, the InitiatingOrigin will be the source of that child frame.

get_IsUserInitiated
HRESULT get_IsUserInitiated(BOOL* value)

TRUE when the external URI scheme request was initiated through a user gesture.

get_Uri
HRESULT get_Uri(LPWSTR* value)

The URI with the external URI scheme to be launched.

put_Cancel
HRESULT put_Cancel(BOOL value)

Sets the Cancel property.

Meta