public class CompositePermissionListener extends java.lang.Object implements PermissionListener
| Constructor and Description |
|---|
CompositePermissionListener(java.util.Collection<PermissionListener> listeners)
Creates a
CompositePermissionListener containing all the provided listeners. |
CompositePermissionListener(PermissionListener... listeners)
Creates a
CompositePermissionListener containing all the provided listeners. |
| Modifier and Type | Method and Description |
|---|---|
void |
onPermissionDenied(PermissionDeniedResponse response)
Method called whenever a requested permission has been denied
|
void |
onPermissionGranted(PermissionGrantedResponse response)
Method called whenever a requested permission has been granted
|
void |
onPermissionRationaleShouldBeShown(PermissionRequest permission,
PermissionToken token)
Method called whenever Android asks the application to inform the user of the need for the
requested permission.
|
public CompositePermissionListener(PermissionListener... listeners)
CompositePermissionListener containing all the provided listeners.
This constructor does not guaranty any calling order on inner listeners.public CompositePermissionListener(java.util.Collection<PermissionListener> listeners)
CompositePermissionListener containing all the provided listeners.
This constructor will guaranty that inner listeners are called following the iterator order
of the collection.public void onPermissionGranted(PermissionGrantedResponse response)
PermissionListeneronPermissionGranted in interface PermissionListenerresponse - A response object that contains the permission that has been requested and
any additional flags relevant to this responsepublic void onPermissionDenied(PermissionDeniedResponse response)
PermissionListeneronPermissionDenied in interface PermissionListenerresponse - A response object that contains the permission that has been requested and
any additional flags relevant to this responsepublic void onPermissionRationaleShouldBeShown(PermissionRequest permission, PermissionToken token)
PermissionListeneronPermissionRationaleShouldBeShown in interface PermissionListenerpermission - The permission that has been requestedtoken - Token used to continue or cancel the permission request process. The permission
request process will remain blocked until one of the token methods is called