PermissionStateQuery

This query represents a user's choice to allow or deny access to "powerful features" of the platform, as specified in the [Permissions W3C Specification](https://w3c.github.io/permissions/).

When signalled by the #WebKitWebView through the query-permission-state signal, the application has to eventually respond, via [webkit.permission_state_query.PermissionStateQuery.finish], whether it grants, denies or requests a dedicated permission prompt for the given query.

When a #WebKitPermissionStateQuery is not handled by the user, the user-agent is instructed to prompt the user for the given permission.

Constructors

this
this(void* ptr, Flag!"Take" take)

Members

Functions

cPtr
void* cPtr(Flag!"Dup" dup)
finish
void finish(webkit.types.PermissionState state)

Notify the web-engine of the selected permission state for the given query. This function should only be called as a response to the WebKitWebView::query-permission-state signal.

getName
string getName()

Get the permission name for which access is being queried.

getSecurityOrigin
webkit.security_origin.SecurityOrigin getSecurityOrigin()

Get the permission origin for which access is being queried.

self
PermissionStateQuery self()

Returns this, for use in with statements.

Properties

gType
GType gType [@property getter]

Static functions

getGType
GType getGType()

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.