Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.

Commit fd4d351

Browse files
dcgavrilsamtstern
authored andcommitted
Update README.md (#185)
1 parent 2285fcc commit fd4d351

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ The example below shows how to request permissions for a method that requires bo
5050
necessary. The request code provided should be unique to this request, and the method
5151
can take any number of permissions as its final argument.
5252
* 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
5555
flow of needing to run the requesting method after all of its permissions have been granted.
5656
This can also be achieved by adding logic on the `onPermissionsGranted` callback.
5757

0 commit comments

Comments
 (0)