Interface RequestPermissionCallback
- All Superinterfaces:
AsyncCallback<RequestPermissionCallback.Params,
,RequestPermissionCallback.Action> Callback
,PermissionsAsyncCallback<RequestPermissionCallback.Params,
,RequestPermissionCallback.Action> PermissionsCallback
public interface RequestPermissionCallback
extends PermissionsAsyncCallback<RequestPermissionCallback.Params,RequestPermissionCallback.Action>
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.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
An action providing a response to theRequestPermissionCallback
.static interface
The parameters of theRequestPermissionCallback
. -
Method Summary
Methods inherited from interface com.teamdev.jxbrowser.callback.AsyncCallback
on