PermissionStateQuery

class PermissionStateQuery(pointer: <Error class: unknown class><<Error class: unknown class>>)

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_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

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val webkitPermissionStateQueryPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard

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.

Link copied to clipboard

Get the permission name for which access is being queried.

Link copied to clipboard

Get the permission origin for which access is being queried.

Link copied to clipboard

Atomically increments the reference count of @query by one.

Link copied to clipboard
fun unref()

Atomically decrements the reference count of @query by one.