public class BasePermissionListener extends java.lang.Object implements PermissionListener
PermissionListener to allow extensions to implement only the
required methods| Constructor and Description |
|---|
BasePermissionListener() |
| 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 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