WebView.connectQueryPermissionState

gulong connectQueryPermissionState(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == bool) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == webkit.permission_state_query.PermissionStateQuery))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : webkit.web_view.WebView))) && Parameters!T.length < 3)

Connect to QueryPermissionState signal.

This signal allows the User-Agent to respond to permission requests for powerful features, as specified by the Permissions W3C Specification. You can reply to the query using [webkit.permission_state_query.PermissionStateQuery.finish].

You can handle the query asynchronously by calling [webkit.permission_state_query.PermissionStateQuery.ref_] on query and returning true. If the last reference of query is removed and the query has not been handled, the query result will be set to WEBKIT_QUERY_PERMISSION_PROMPT.

Parameters

callbacksignal callback delegate or function to connect bool callback(webkit.permission_state_query.PermissionStateQuery query, webkit.web_view.WebView webView) query the #WebKitPermissionStateQuery (optional) webView the instance the signal is connected to (optional) Returns true if the message was handled, or false otherwise.
afterYes.After to execute callback after default handler, No.After to execute before (default)

Returns

Signal ID