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
{{ message }}
This repository was archived by the owner on Oct 3, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,8 +50,8 @@ The example below shows how to request permissions for a method that requires bo
50
50
necessary. The request code provided should be unique to this request, and the method
51
51
can take any number of permissions as its final argument.
52
52
* Use of the `AfterPermissionGranted` annotation. This is optional, but provided for
53
-
convenience. If all of the permissions in a given request are granted, any methods
54
-
annotated with the proper request code will be executed. This is to simplify the common
53
+
convenience. If all of the permissions in a given request are granted, *all* methods
54
+
annotated with the proper request code will be executed(be sure to have an unique request code). The annotated method needs to be *void* and *without input parameters* (instead, you can use *onSaveInstanceState* in order to keep the state of your suppressed parameters). This is to simplify the common
55
55
flow of needing to run the requesting method after all of its permissions have been granted.
56
56
This can also be achieved by adding logic on the `onPermissionsGranted` callback.
0 commit comments