Interface RequestPermissionCallback

All Superinterfaces:
AsyncCallback<RequestPermissionCallback.Params,RequestPermissionCallback.Action>, Callback, PermissionsAsyncCallback<RequestPermissionCallback.Params,RequestPermissionCallback.Action>, PermissionsCallback

This callback is invoked when a web page requests a permission, for example to enable geolocation or notifications. The permission type and the information about the web page can be obtained from the passed RequestPermissionCallback.Params object.

Use the RequestPermissionCallback.Action.grant() method to grant the requested permission.

Use the RequestPermissionCallback.Action.deny() method to deny the requested permission.

If the callback throws an exception, the RequestPermissionCallback.Action.deny() method will be invoked.