Removed docs for deprecated methods

Removed docs for checkDeviceCameraAuthorizationStatus
Removed docs for requestDeviceCameraAuthorization
Please use rn-permissions or expo-permissions to check instead
This commit is contained in:
Seph Soliman 2025-02-11 11:14:32 -08:00
parent 5436375604
commit bfa393e5f5

View File

@ -244,30 +244,6 @@ if (uri.startsWith('file://')) {
}
```
#### checkDeviceCameraAuthorizationStatus (**iOS only**)
```ts
const isCameraAuthorized = await Camera.checkDeviceCameraAuthorizationStatus();
```
return values:
`AVAuthorizationStatusAuthorized` returns `true`
`AVAuthorizationStatusNotDetermined` returns `-1`
otherwise, returns `false`
#### requestDeviceCameraAuthorization (**iOS only**)
```ts
const isUserAuthorizedCamera = await Camera.requestDeviceCameraAuthorization();
```
`AVAuthorizationStatusAuthorized` returns `true`
otherwise, returns `false`
## Using with Expo
If you are using Expo Managed Workflow, you can use this library with a third-party plugin `expo-react-native-camera-kit`.