onCameraCaptureStateChanged property
- @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.')])
final
Event fired when a change in the camera capture state occurred.
Officially Supported Platforms/Implementations:
- iOS WKWebView 15.0+
- macOS WKWebView 12.0+
- Linux WPE WebKit (Official API - WebKitWebView::notify::camera-capture-state):
- Requires WPE WebKit 2.34 or later.
Parameters - Officially Supported Platforms/Implementations:
oldState: all platformsnewState: 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;