onLaunchingExternalUriScheme method

  1. @SupportedPlatforms.new(platforms: [WindowsPlatform(apiName: 'ICoreWebView2_18.add_LaunchingExternalUriScheme', apiUrl: 'https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_18?view=webview2-1.0.2849.39#add_launchingexternalurischeme')])
FutureOr<LaunchingExternalUriSchemeResponse?>? onLaunchingExternalUriScheme(
  1. LaunchingExternalUriSchemeRequest request
)

Event fired when an external URI scheme is about to be launched.

Officially Supported Platforms/Implementations:

Parameters - Officially Supported Platforms/Implementations:

  • request: all platforms

Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.

Implementation

@SupportedPlatforms(
  platforms: [
    WindowsPlatform(
      apiName: 'ICoreWebView2_18.add_LaunchingExternalUriScheme',
      apiUrl:
          'https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_18?view=webview2-1.0.2849.39#add_launchingexternalurischeme',
    ),
  ],
)
FutureOr<LaunchingExternalUriSchemeResponse?>? onLaunchingExternalUriScheme(
  LaunchingExternalUriSchemeRequest request,
) {
  return null;
}