onLaunchingExternalUriScheme property

  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?> Function(T controller, LaunchingExternalUriSchemeRequest request)? onLaunchingExternalUriScheme
final

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 PlatformWebViewCreationParams.isPropertySupported method to check if this property 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',
    ),
  ],
)
final FutureOr<LaunchingExternalUriSchemeResponse?> Function(
  T controller,
  LaunchingExternalUriSchemeRequest request,
)?
onLaunchingExternalUriScheme;