getCameraCaptureState method
Returns a MediaCaptureState that indicates whether the webpage is using the camera to capture images or video.
NOTE for iOS: available on iOS 15.0+.
NOTE for MacOS: available on MacOS 12.0+.
Officially Supported Platforms/Implementations:
Implementation
@override
Future<MediaCaptureState?> getCameraCaptureState() async {
Map<String, dynamic> args = <String, dynamic>{};
int? result = await channel?.invokeMethod<int?>(
'getCameraCaptureState',
args,
);
if (result != null) {
return mediaCaptureStateFromWire(result);
}
return null;
}