Class RequestPermissionCallback.Action

java.lang.Object
com.teamdev.jxbrowser.callback.AsyncCallbackAction<com.teamdev.jxbrowser.browser.internal.rpc.RequestPermission.Response>
com.teamdev.jxbrowser.permission.callback.RequestPermissionCallback.Action
Enclosing interface:
RequestPermissionCallback

public static final class RequestPermissionCallback.Action extends AsyncCallbackAction<com.teamdev.jxbrowser.browser.internal.rpc.RequestPermission.Response>
An action providing a response to the RequestPermissionCallback.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Action(Consumer<com.teamdev.jxbrowser.browser.internal.rpc.RequestPermission.Response> consumer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Notifies the browser that the requested permission should be denied.
    void
    Notifies the browser that the requested permission should be granted.

    Methods inherited from class com.teamdev.jxbrowser.callback.AsyncCallbackAction

    isClosed

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Action

      public Action(Consumer<com.teamdev.jxbrowser.browser.internal.rpc.RequestPermission.Response> consumer)
  • Method Details

    • grant

      public void grant()
      Notifies the browser that the requested permission should be granted.
    • deny

      public void deny()
      Notifies the browser that the requested permission should be denied.