CoreWebView2LaunchingExternalUriSchemeEventArgs Class

Event args for the CoreWebView2.LaunchingExternalUriScheme event.

Summary

Members Description
Cancel Determines whether to cancel the navigation.
InitiatingOrigin Gets the origin initiating the external URI scheme launch.
IsUserInitiated true when the launching external URI scheme request was initiated through a user gesture.
Uri Gets the URI with the external URI scheme to be launched.
GetDeferral Gets a Deferral object and puts the event into a deferred state.

Properties

Cancel

bool Cancel

Determines whether to cancel the navigation.

InitiatingOrigin

readonly string InitiatingOrigin

Gets 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, i.e. if window.location is set to "calculator://", the InitiatingOriginwill be set tocalculator://. If the request is initiated from a child frame, the InitiatingOrigin` will be the source of that child frame.

IsUserInitiated

readonly bool IsUserInitiated

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

Uri

readonly string Uri

Gets the URI with the external URI scheme to be launched.

Methods

GetDeferral

Deferral GetDeferral()

Gets a Deferral object and puts the event into a deferred state. Use this to Complete the launching external URI scheme request at a later time.

Referenced by