onCameraCaptureStateChanged property

  1. @SupportedPlatforms.new(platforms: [IOSPlatform(available: '15.0'), MacOSPlatform(available: '12.0'), LinuxPlatform(apiName: 'WebKitWebView::notify::camera-capture-state', apiUrl: 'https://webkitgtk.org/reference/webkit2gtk/stable/property.WebView.camera-capture-state.html', note: 'Requires WPE WebKit 2.34 or later.')])
FutureOr<void> Function(T controller, MediaCaptureState? oldState, MediaCaptureState? newState)? onCameraCaptureStateChanged
final

Event fired when a change in the camera capture state occurred.

Officially Supported Platforms/Implementations:

Parameters - Officially Supported Platforms/Implementations:

  • oldState: all platforms
  • newState: all platforms

Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.

Implementation

@SupportedPlatforms(
  platforms: [
    IOSPlatform(available: '15.0'),
    MacOSPlatform(available: '12.0'),
    LinuxPlatform(
      apiName: 'WebKitWebView::notify::camera-capture-state',
      apiUrl:
          'https://webkitgtk.org/reference/webkit2gtk/stable/property.WebView.camera-capture-state.html',
      note: 'Requires WPE WebKit 2.34 or later.',
    ),
  ],
)
final FutureOr<void> Function(
  T controller,
  MediaCaptureState? oldState,
  MediaCaptureState? newState,
)?
onCameraCaptureStateChanged;