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
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,7 @@ Return Value Descriptions:
67
67
*`restricted` - The application is not authorized to access `type` data. The user cannot change this application’s status, possibly due to active restrictions such as parental controls being in place.
68
68
*`denied` - The user explicitly denied access to `type` data for the application.
69
69
*`authorized` - The application is authorized to access `type` data.
70
+
*`limited` - The application is authorized for limited access to `type` data. Currently only applicable to the `photos` type.
70
71
71
72
**Notes:**
72
73
* Access to `bluetooth` will always return a status of `authorized` prior to macOS 10.15, as the underlying API was not introduced until that version.
*`accessLevel` String (optional) - The access level being requested of Photos. Can be either `add-only` or `read-write`. Only available on macOS 11 or higher.
334
337
335
338
Returns `Promise<String>` - Current permission status; can be `authorized`, `denied`, or `restricted`.
336
339
@@ -347,6 +350,11 @@ Your app must provide an explanation for its use of the photo library using the
347
350
<string>Your reason for wanting to access Photos</string>
348
351
```
349
352
353
+
**Note:**
354
+
355
+
You should add the `PHPhotoLibraryPreventAutomaticLimitedAccessAlert` key with a Boolean value of `YES` to your app’s `Info.plist` file to prevent the system from automatically presenting the limited library selection prompt. See [`PHAuthorizationStatusLimited`](https://developer.apple.com/documentation/photokit/phauthorizationstatus/phauthorizationstatuslimited?language=objc) for more information.
0 commit comments