Skip to content

Commit 36da33c

Browse files
author
hotchemi
committed
Update document.
1 parent 76bd45e commit 36da33c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/java_usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ PermissionsDispatcher introduces only a few annotations, keeping its general API
1818
|---|---|---|
1919
|`@RuntimePermissions`|****|Register an `Activity` or `Fragment`(we support both) to handle permissions|
2020
|`@NeedsPermission`|****|Annotate a method which performs the action that requires one or more permissions|
21-
|`@OnShowRationale`||Annotate a method which explains why the permission/s is/are needed. It passes in a `PermissionRequest` object which can be used to continue or abort the current permission request upon user input|
21+
|`@OnShowRationale`||Annotate a method which explains why the permissions are needed. It passes in a `PermissionRequest` object which can be used to continue or abort the current permission request upon user input. If you don't specify any argument for the method compiler will generate `process${NeedsPermissionMethodName}ProcessRequest` and `cancel${NeedsPermissionMethodName}ProcessRequest`. You can use those methods in place of `PermissionRequest`(ex: with `DialogFragment`)|
2222
|`@OnPermissionDenied`||Annotate a method which is invoked if the user doesn't grant the permissions|
2323
|`@OnNeverAskAgain`||Annotate a method which is invoked if the user chose to have the device "never ask again" about a permission|
2424

doc/kotlin_usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ PermissionsDispatcher introduces only a few annotations, keeping its general API
1818
|---|---|---|
1919
|`@RuntimePermissions`|****|Register an `Activity` or `Fragment`(we support both) to handle permissions|
2020
|`@NeedsPermission`|****|Annotate a method which performs the action that requires one or more permissions|
21-
|`@OnShowRationale`||Annotate a method which explains why the permission/s is/are needed. It passes in a `PermissionRequest` object which can be used to continue or abort the current permission request upon user input|
21+
|`@OnShowRationale`||Annotate a method which explains why the permissions are needed. It passes in a `PermissionRequest` object which can be used to continue or abort the current permission request upon user input. If you don't specify any argument for the method compiler will generate `process${NeedsPermissionMethodName}ProcessRequest` and `cancel${NeedsPermissionMethodName}ProcessRequest`. You can use those methods in place of `PermissionRequest`(ex: with `DialogFragment`)|
2222
|`@OnPermissionDenied`||Annotate a method which is invoked if the user doesn't grant the permissions|
2323
|`@OnNeverAskAgain`||Annotate a method which is invoked if the user chose to have the device "never ask again" about a permission|
2424

0 commit comments

Comments
 (0)