Interface PermissionRequest

All Superinterfaces:
Proxy
All Known Implementing Classes:
ClipboardPermissionRequest, DeviceInfoPermissionRequest, GeolocationPermissionRequest, MediaKeySystemPermissionRequest, NotificationPermissionRequest, PermissionRequest.PermissionRequest$Impl, PointerLockPermissionRequest, UserMediaPermissionRequest, WebsiteDataAccessPermissionRequest, XRPermissionRequest

@Generated("org.javagi.JavaGI") public interface PermissionRequest extends Proxy

A permission request.

There are situations where an embedder would need to ask the user for permission to do certain types of operations, such as switching to fullscreen mode or reporting the user's location through the standard Geolocation API. In those cases, WebKit will emit a WebKitWebView::permission-request signal with a WebKitPermissionRequest object attached to it.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    The PermissionRequest$Impl type represents a native instance of the PermissionRequest interface.
    static class 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Allow the action which triggered this request.
    default void
    Deny the action which triggered this request.
    static @Nullable Type
    Get the GType of the PermissionRequest class.

    Methods inherited from interface Proxy

    handle
  • Method Details

    • getType

      static @Nullable Type getType()
      Get the GType of the PermissionRequest class.
      Returns:
      the GType
    • allow

      default void allow()
      Allow the action which triggered this request.
    • deny

      default void deny()
      Deny the action which triggered this request.