Trait webview2_sys::ICoreWebView2PermissionRequestedEventArgs[][src]

pub trait ICoreWebView2PermissionRequestedEventArgs: IUnknown {
    unsafe fn get_uri(&self, uri: *mut LPWSTR) -> HRESULT;
unsafe fn get_permission_kind(
        &self,
        permission_kind: *mut PermissionKind
    ) -> HRESULT;
unsafe fn get_is_user_initiated(
        &self,
        is_user_initiated: *mut BOOL
    ) -> HRESULT;
unsafe fn get_state(&self, state: *mut PermissionState) -> HRESULT;
unsafe fn put_state(&self, state: PermissionState) -> HRESULT;
unsafe fn get_deferral(
        &self,
        deferral: *mut *mut *mut ICoreWebView2DeferralVTable
    ) -> HRESULT; }
Expand description

Event args for the PermissionRequested event.

Required methods

The origin of the web content that requests the permission.

The type of the permission that is requested.

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

> [!NOTE]\n> Being initiated through a user gesture does not mean that user intended to access the associated resource.

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

Sets the State property.

Gets an ICoreWebView2Deferral object. Use the deferral object to make the permission decision at a later time.

Trait Implementations

A COM compatible V-Table

The interface that this interface inherits from

The associated id for this interface

Check whether a given IID is in the inheritance hierarchy of this interface

Get the vtable for a particular COM interface

Implementations on Foreign Types

Implementors