CAMERA property

PermissionResourceType CAMERA
final

Resource belongs to video capture device, like camera.

Officially Supported Platforms/Implementations:

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;
      case TargetPlatform.windows:
        return 2;
      default:
        break;
    }
    return null;
  },
);