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
+6-12Lines changed: 6 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,8 @@ This native Node.js module allows you to manage an app's access to:
11
11
* Calendar
12
12
* Reminders
13
13
* Photos
14
+
* Camera
15
+
* Microphone
14
16
15
17
## API
16
18
@@ -35,7 +37,6 @@ Return Value Descriptions:
35
37
## `permissions.askForContactsAccess(callback)`
36
38
37
39
*`callback` Function
38
-
*`error` String | null - An error in performing the request, if one occurred.
39
40
*`status` String - Whether or not the request succeeded or failed; can be 'authorized' or 'denied'.
40
41
41
42
Your app’s `Info.plist` file must provide a value for the `NSContactsUsageDescription` key that explains to the user why your app is requesting Contacts access.
*`type` String - The type of media to which you are requesting access. Can be 'microphone' or 'camera'.
106
102
107
103
*`callback` Function
108
-
*`error` String | null - An error in performing the request, if one occurred.
109
104
*`status` String - Whether or not the request succeeded or failed; can be 'authorized' or 'denied'.
110
105
111
106
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.
0 commit comments