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:
parent
5436375604
commit
bfa393e5f5
24
README.md
24
README.md
@ -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`.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user