-
- All Implemented Interfaces:
-
com.karumi.dexter.listener.multi.MultiplePermissionsListener
public class CompositeMultiplePermissionsListener implements MultiplePermissionsListener
Listener that composes multiple listeners into one All inner listeners will be called for a given event unless one of them throws an exception or is blocked
-
-
Constructor Summary
Constructors Constructor Description CompositeMultiplePermissionsListener(Array<MultiplePermissionsListener> listeners)Creates a CompositeMultiplePermissionsListener containing all the provided listeners.This constructor does not guaranty any calling order on inner listeners. CompositeMultiplePermissionsListener(Collection<MultiplePermissionsListener> listeners)Creates a CompositeMultiplePermissionsListener containing all the provided listeners.This constructor will guaranty that inner listeners are called following the iterator orderof the collection.
-
Method Summary
Modifier and Type Method Description voidonPermissionsChecked(MultiplePermissionsReport report)Method called when all permissions has been completely checked voidonPermissionRationaleShouldBeShown(List<PermissionRequest> permissions, PermissionToken token)Method called whenever Android asks the application to inform the user of the need for therequested permissions. -
-
Constructor Detail
-
CompositeMultiplePermissionsListener
CompositeMultiplePermissionsListener(Array<MultiplePermissionsListener> listeners)
Creates a CompositeMultiplePermissionsListener containing all the provided listeners.This constructor does not guaranty any calling order on inner listeners.
-
CompositeMultiplePermissionsListener
CompositeMultiplePermissionsListener(Collection<MultiplePermissionsListener> listeners)
Creates a CompositeMultiplePermissionsListener containing all the provided listeners.This constructor will guaranty that inner listeners are called following the iterator orderof the collection.
-
-
Method Detail
-
onPermissionsChecked
void onPermissionsChecked(MultiplePermissionsReport report)
Method called when all permissions has been completely checked
- Parameters:
report- In detail report with all the permissions that has been denied and granted
-
onPermissionRationaleShouldBeShown
void onPermissionRationaleShouldBeShown(List<PermissionRequest> permissions, PermissionToken token)
Method called whenever Android asks the application to inform the user of the need for therequested permissions. The request process won't continue until the token is properly used
- Parameters:
permissions- The permissions that has been requested.token- Token used to continue or cancel the permission request process.
-
-
-
-