The OpenD Programming Language

ICoreWebView2PermissionRequestedEventArgs

Undocumented in source.

Members

Functions

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.

get_IsUserInitiated
HRESULT get_IsUserInitiated(BOOL* isUserInitiated)

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

get_PermissionKind
HRESULT get_PermissionKind(COREWEBVIEW2_PERMISSION_KIND* permissionKind)

The type of the permission that is requested.

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.

get_Uri
HRESULT get_Uri(LPWSTR* uri)

The origin of the web content that requests the permission.

put_State
HRESULT put_State(COREWEBVIEW2_PERMISSION_STATE state)

Sets the State property.

Meta