Karumi / Dexter

Android library that simplifies the process of requesting permissions at runtime.
http://karumi.com
Apache License 2.0
5.23k stars 670 forks source link

Permissions group #179

Closed s1mar closed 7 years ago

s1mar commented 7 years ago

Would it work if I simply supply the Permissions group to .withPermission() and if yes,then which listener would be used,Multiple or single one ?

Serchinastico commented 7 years ago

Hi @s1mar

If you use withPermission then you should be passing one and only one permission, the API won't let you pass anything else. In that case you can only provide a regular PermissionListener. If you use withPermissions then you are forced to use a MultiplePermissionsListener. The API is using a builder that won't let you make the wrong choice so it should be rather easy.

Feel free to reopen the issue if we didn't answer your question. Thanks!