onCameraCaptureStateChanged method

void onCameraCaptureStateChanged(
  1. MediaCaptureState? oldState,
  2. MediaCaptureState? newState
)

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

NOTE for iOS: available only on iOS 15.0+.

NOTE for MacOS: available only on MacOS 12.0+.

Officially Supported Platforms/Implementations:

  • iOS
  • MacOS

Implementation

void onCameraCaptureStateChanged(
  MediaCaptureState? oldState,
  MediaCaptureState? newState,
) {}