The OpenD Programming Language

ICoreWebView2PermissionRequestedEventArgs2

Undocumented in source.
version(Windows && inline_webview2_bindings && all)
interface ICoreWebView2PermissionRequestedEventArgs2 : ICoreWebView2PermissionRequestedEventArgs {
static const
GUID iid;
}

Members

Functions

get_Handled
HRESULT get_Handled(BOOL* handled)

By default, both the PermissionRequested event handlers on the CoreWebView2Frame and the CoreWebView2 will be invoked, with the CoreWebView2Frame event handlers invoked first. The host may set this flag to TRUE within the CoreWebView2Frame event handlers to prevent the remaining CoreWebView2 event handlers from being invoked.

put_Handled
HRESULT put_Handled(BOOL handled)

Sets the Handled property.

Inherited Members

From ICoreWebView2PermissionRequestedEventArgs

get_Uri
HRESULT get_Uri(LPWSTR* uri)

The origin of the web content that requests the permission.

get_PermissionKind
HRESULT get_PermissionKind(COREWEBVIEW2_PERMISSION_KIND* permissionKind)

The type of the permission that is requested.

get_IsUserInitiated
HRESULT get_IsUserInitiated(BOOL* isUserInitiated)

TRUE when the permission request was initiated through a user gesture.

get_State
HRESULT get_State(COREWEBVIEW2_PERMISSION_STATE* state)

The status of a permission request, (for example is the request is granted). The default value is COREWEBVIEW2_PERMISSION_STATE_DEFAULT.

put_State
HRESULT put_State(COREWEBVIEW2_PERMISSION_STATE state)

Sets the State property.

GetDeferral
HRESULT GetDeferral(ICoreWebView2Deferral* deferral)

Gets an ICoreWebView2Deferral object. Use the deferral object to make the permission decision at a later time. The deferral only applies to the current request, and does not prevent the PermissionRequested event from getting raised for new requests. However, for some permission kinds the WebView will avoid creating a new request if there is a pending request of the same kind.

Meta