From fd61e506e57f2f75e58ddf9eae6252bee8b24372 Mon Sep 17 00:00:00 2001 From: Ron Heft Date: Wed, 30 Nov 2016 20:25:23 -0500 Subject: [PATCH] Document other iOS authorization status methods (#427) The API already exposes specific methods for checking camera and microphone access individually. These should be documented. Especially since calling `checkDeviceAuthorizationStatus` requests the microphone permission, which is undesirable in photo-only use cases. --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 09acb40..0157bae 100644 --- a/README.md +++ b/README.md @@ -304,7 +304,15 @@ Ends the current capture session for video captures. Only applies when the curre #### `iOS` `Camera.checkDeviceAuthorizationStatus(): Promise` -Exposes the native API for checking if the device has authorized access to the camera. Can be used to call before loading the Camera component to ensure proper UX. The promise will be fulfilled with `true` or `false` depending on whether the device is authorized. +Exposes the native API for checking if the device has authorized access to the camera (camera and microphone permissions). Can be used to call before loading the Camera component to ensure proper UX. The promise will be fulfilled with `true` or `false` depending on whether the device is authorized. + +#### `iOS` `Camera.checkVideoAuthorizationStatus(): Promise` + +The same as `Camera.checkDeviceAuthorizationStatus()` but only checks the camera permission. + +#### `iOS` `Camera.checkAudioAuthorizationStatus(): Promise` + +The same as `Camera.checkDeviceAuthorizationStatus()` but only checks the microphone permission. ## Subviews This component supports subviews, so if you wish to use the camera view as a background or if you want to layout buttons/images/etc. inside the camera then you can do that.