You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32-1Lines changed: 32 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ This native Node.js module allows you to manage an app's access to:
16
16
17
17
## `permissions.getAuthStatus(type)`
18
18
19
-
*`type` String - The type of system component to which you are requesting access. Can be one of 'contacts', 'full-disk-access', 'photos', 'reminders', or 'calendar'.
19
+
*`type` String - The type of system component to which you are requesting access. Can be one of 'contacts', 'full-disk-access', 'photos', 'reminders', 'camera', 'microphone', 'screen-capture', or 'calendar'.
20
20
21
21
Returns `String` - Can be one of 'not determined', 'denied', 'authorized', or 'restricted'.
22
22
@@ -47,6 +47,7 @@ Your app’s `Info.plist` file must provide a value for the `NSContactsUsageDesc
*`type` String - The type of media to which you are requesting access. Can be 'microphone' or 'camera'.
96
+
97
+
*`callback` Function
98
+
*`error` String | null - An error in performing the request, if one occurred.
99
+
*`status` String - Whether or not the request succeeded or failed; can be 'authorized' or 'denied'.
100
+
101
+
Your app must provide an explanation for its use of capture devices using the `NSCameraUsageDescription` or `NSMicrophoneUsageDescription``Info.plist` keys; Calling this method or attempting to start a capture session without a usage description raises an exception.
102
+
103
+
```
104
+
<key>`NSCameraUsageDescription</key>
105
+
<string>Your reason for wanting to access the Camera</string>
106
+
<key>`NSMicrophoneUsageDescription</key>
107
+
<string>Your reason for wanting to access the Microphone</string>
0 commit comments