cameraAccess property

String? cameraAccess
getter/setter pair

Controls the use of the camera and whether the user has access to the camera access toggle. Possible string values are:

  • "CAMERA_ACCESS_UNSPECIFIED" : If camera_disabled is true, this is equivalent to CAMERA_ACCESS_DISABLED. Otherwise, this is equivalent to CAMERA_ACCESS_USER_CHOICE.
  • "CAMERA_ACCESS_USER_CHOICE" : The field camera_disabled is ignored. This is the default device behaviour: all cameras on the device are available. On Android 12 and above, the user can use the camera access toggle.
  • "CAMERA_ACCESS_DISABLED" : The field camera_disabled is ignored. All cameras on the device are disabled (for fully managed devices, this applies device-wide and for work profiles this applies only to the work profile).There are no explicit restrictions placed on the camera access toggle on Android 12 and above: on fully managed devices, the camera access toggle has no effect as all cameras are disabled. On devices with a work profile, this toggle has no effect on apps in the work profile, but it affects apps outside the work profile.
  • "CAMERA_ACCESS_ENFORCED" : The field camera_disabled is ignored. All cameras on the device are available. On fully managed devices running Android 12 and above, the user is unable to use the camera access toggle. On devices which are not fully managed or which run Android 11 or below, this is equivalent to CAMERA_ACCESS_USER_CHOICE.

Implementation

core.String? cameraAccess;