WebKit2.PermissionRequest
Description: Reference for WebKit2.PermissionRequest

### Interface

# WebKit2PermissionRequest

unstable since: 4.0

#### Description [src]

    interface WebKit2.PermissionRequest : GObject.Object

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.

Available since: 4.0

#### Prerequisite

In order to implement PermissionRequest, your type must inherit from`GObject`.

#### Implementations

- WebKitClipboardPermissionRequest
- WebKitDeviceInfoPermissionRequest
- WebKitGeolocationPermissionRequest
- WebKitInstallMissingMediaPluginsPermissionRequest
- WebKitMediaKeySystemPermissionRequest
- WebKitNotificationPermissionRequest
- WebKitPointerLockPermissionRequest
- WebKitUserMediaPermissionRequest
- WebKitWebsiteDataAccessPermissionRequest

#### Instance methods

###### webkit_permission_request_allow

Allow the action which triggered this request.

unstable since: 4.0

###### webkit_permission_request_deny

Deny the action which triggered this request.

unstable since: 4.0

#### Interface structure

    struct WebKit2PermissionRequestIface {
      GTypeInterface parent_interface;
      void (* allow) (
        WebKitPermissionRequest* request
      );
      void (* deny) (
        WebKitPermissionRequest* request
      );

    }

No description available.

###### Interface members

`parent_interface` |
    GTypeInterface
| No description available.
`allow` |
    void (* allow) (
        WebKitPermissionRequest* request
      )
| No description available.
`deny` |
    void (* deny) (
        WebKitPermissionRequest* request
      )
| No description available.

#### Virtual methods

###### WebKit2.PermissionRequest.allow

Allow the action which triggered this request.

unstable since: 4.0

###### WebKit2.PermissionRequest.deny

Deny the action which triggered this request.

unstable since: 4.0