react-native-vision-cameraInterfaces
PermissionState
interface PermissionStateThe state of a Camera or Microphone permission, as returned by
useCameraPermission or useMicrophonePermission.
Properties
canRequestPermission
canRequestPermission: booleanWhether the app can still request this permission (status is
'not-determined'). If this is false but
hasPermission is also false, the user must grant the
permission from the system Settings.
hasPermission
hasPermission: booleanWhether the app has been granted this permission (status is
'authorized').
requestPermission()
requestPermission: () => Promise<boolean>Requests the permission from the user.
Resolves with whether the permission was granted after the request completed.
Can only be called if canRequestPermission is true.
status
status: PermissionStatusThe current raw PermissionStatus.