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
PermissionsDispatcher introduces only a few annotations, keeping its general API concise:
14
+
13
15
> NOTE: Annotated methods must not be `private`.
14
16
17
+
|Annotation|Required|Description|
18
+
|---|---|---|
19
+
|`@RuntimePermissions`|**✓**|Register an `Activity` or `Fragment`(we support both) to handle permissions|
20
+
|`@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|
22
+
|`@OnPermissionDenied`||Annotate a method which is invoked if the user doesn't grant the permissions|
23
+
|`@OnNeverAskAgain`||Annotate a method which is invoked if the user chose to have the device "never ask again" about a permission|
0 commit comments