onCameraCaptureStateChanged method

  1. @SupportedPlatforms.new(platforms: [IOSPlatform(available: '15.0'), MacOSPlatform(available: '12.0')])
void onCameraCaptureStateChanged(
  1. MediaCaptureState? oldState,
  2. MediaCaptureState? newState
)

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

Officially Supported Platforms/Implementations:

  • iOS WKWebView 15.0+
  • macOS WKWebView 12.0+

Parameters - Officially Supported Platforms/Implementations:

  • oldState: all platforms
  • newState: all platforms

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

Implementation

@SupportedPlatforms(
  platforms: [
    IOSPlatform(available: '15.0'),
    MacOSPlatform(available: '12.0'),
  ],
)
void onCameraCaptureStateChanged(
  MediaCaptureState? oldState,
  MediaCaptureState? newState,
) {}