diff --git a/README-ZH.md b/README-ZH.md index a3beda89..b8806496 100644 --- a/README-ZH.md +++ b/README-ZH.md @@ -213,8 +213,8 @@ Android 10 引入了 **Scoped Storage**,导致原始资源文件不能通过 ```dart final PermissionState ps = await PhotoManager.requestPermissionExtend(); -if (ps.isAuth) { - // 已获取到权限。 +if (ps.hasAccess) { + // 已获取到权限(哪怕只是有限的访问权限)。 } else { // 权限受限制(iOS)或者被拒绝,使用 `==` 能够更准确的判断是受限还是拒绝。 // 你可以使用 `PhotoManager.openSetting()` 打开系统设置页面进行进一步的逻辑定制。 diff --git a/README.md b/README.md index 23a85f55..a6b24f6d 100644 --- a/README.md +++ b/README.md @@ -222,9 +222,9 @@ It's pretty much the same as the `NSPhotoLibraryUsageDescription`. Most of the APIs can only use with granted permission. ```dart -final PermissionState ps = await PhotoManager.requestPermissionExtend(); -if (ps.isAuth) { - // Granted. +final PermissionState ps = await PhotoManager.requestPermissionExtend(); // the method can use optional param `permission`. +if (ps.hasAccess) { + // Granted or limited. } else { // Limited(iOS) or Rejected, use `==` for more precise judgements. // You can call `PhotoManager.openSetting()` to open settings for further steps. diff --git a/lib/src/types/types.dart b/lib/src/types/types.dart index 733ca40e..9a2b529e 100644 --- a/lib/src/types/types.dart +++ b/lib/src/types/types.dart @@ -87,6 +87,7 @@ class PermissionRequestOption with IMapMixin { ), }); + /// See [IosAccessLevel]. final IosAccessLevel iosAccessLevel; /// See [AndroidPermission].