onScreenCaptureStarting method

  1. @SupportedPlatforms.new(platforms: [WindowsPlatform(apiName: 'ICoreWebView2_27.add_ScreenCaptureStarting', apiUrl: 'https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_27?view=webview2-1.0.2849.39#add_screencapturestarting')])
FutureOr<ScreenCaptureStartingResponse?>? onScreenCaptureStarting(
  1. ScreenCaptureStartingRequest request
)

Event fired when screen capture is starting.

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_27.add_ScreenCaptureStarting',
      apiUrl:
          'https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_27?view=webview2-1.0.2849.39#add_screencapturestarting',
    ),
  ],
)
FutureOr<ScreenCaptureStartingResponse?>? onScreenCaptureStarting(
  ScreenCaptureStartingRequest request,
) {
  return null;
}