public interface PermissionListener
| 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.
|
void onPermissionGranted(PermissionGrantedResponse response)
response - A response object that contains the permission that has been requested and
any additional flags relevant to this responsevoid onPermissionDenied(PermissionDeniedResponse response)
response - A response object that contains the permission that has been requested and
any additional flags relevant to this responsevoid onPermissionRationaleShouldBeShown(PermissionRequest permission, PermissionToken token)
permission - 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