Skip to content

Commit

Permalink
docs: Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
CaiJingLong committed Sep 19, 2023
1 parent 338738b commit 7a223d0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README-ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()` 打开系统设置页面进行进一步的逻辑定制。
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions lib/src/types/types.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ class PermissionRequestOption with IMapMixin {
),
});

/// See [IosAccessLevel].
final IosAccessLevel iosAccessLevel;

/// See [AndroidPermission].
Expand Down

0 comments on commit 7a223d0

Please sign in to comment.