Skip to content

Commit

Permalink
Update readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
hotchemi committed Dec 30, 2018
1 parent a1f4508 commit 5b83d5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/java_usage.md
Expand Up @@ -16,7 +16,7 @@ PermissionsDispatcher introduces only a few annotations, keeping its general API
|Annotation|Required|Description|
|---|---|---|
|`@RuntimePermissions`|****|Register an `Activity` or `Fragment`(we support both) to handle permissions|
|`@RuntimePermissions`|****|Register an `Activity`, `Fragment` or [Controller](https://github.com/bluelinelabs/Conductor) to handle permissions|
|`@NeedsPermission`|****|Annotate a method which performs the action that requires one or more permissions|
|`@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`)|
|`@OnPermissionDenied`||Annotate a method which is invoked if the user doesn't grant the permissions|
Expand Down
2 changes: 1 addition & 1 deletion doc/kotlin_usage.md
Expand Up @@ -16,7 +16,7 @@ PermissionsDispatcher introduces only a few annotations, keeping its general API
|Annotation|Required|Description|
|---|---|---|
|`@RuntimePermissions`|****|Register an `Activity` or `Fragment`(we support both) to handle permissions|
|`@RuntimePermissions`|****|Register an `Activity`, `Fragment` or [Controller](https://github.com/bluelinelabs/Conductor) to handle permissions|
|`@NeedsPermission`|****|Annotate a method which performs the action that requires one or more permissions|
|`@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`)|
|`@OnPermissionDenied`||Annotate a method which is invoked if the user doesn't grant the permissions|
Expand Down

0 comments on commit 5b83d5a

Please sign in to comment.