CAMERA property
Resource belongs to video capture device, like camera.
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - PermissionRequest.RESOURCE_VIDEO_CAPTURE)
- iOS 15.0+ (Official API - WKMediaCaptureType.camera)
- MacOS 12.0+ (Official API - WKMediaCaptureType.camera)
Implementation
static final CAMERA =
PermissionResourceType._internalMultiPlatform('CAMERA', () {
switch (defaultTargetPlatform) {
case TargetPlatform.android:
return 'android.webkit.resource.VIDEO_CAPTURE';
case TargetPlatform.iOS:
return 0;
case TargetPlatform.macOS:
return 0;
default:
break;
}
return null;
});