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.
unsafe fn get_permission_kind(
&self,
permission_kind: *mut PermissionKind
) -> HRESULT
unsafe fn get_permission_kind(
&self,
permission_kind: *mut PermissionKind
) -> HRESULT
The type of the permission that is requested.
unsafe fn get_is_user_initiated(&self, is_user_initiated: *mut BOOL) -> HRESULT
unsafe fn get_is_user_initiated(&self, is_user_initiated: *mut BOOL) -> HRESULT
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.
unsafe fn get_state(&self, state: *mut PermissionState) -> HRESULT
unsafe fn get_state(&self, state: *mut PermissionState) -> HRESULT
The status of a permission request, (for example is the request is granted).
The default value is COREWEBVIEW2_PERMISSION_STATE_DEFAULT
.
unsafe fn put_state(&self, state: PermissionState) -> HRESULT
unsafe fn put_state(&self, state: PermissionState) -> HRESULT
Sets the State
property.
unsafe fn get_deferral(
&self,
deferral: *mut *mut *mut ICoreWebView2DeferralVTable
) -> HRESULT
unsafe fn get_deferral(
&self,
deferral: *mut *mut *mut ICoreWebView2DeferralVTable
) -> HRESULT
Gets an ICoreWebView2Deferral
object. Use the deferral object to make
the permission decision at a later time.
Trait Implementations
A COM compatible V-Table
Check whether a given IID is in the inheritance hierarchy of this interface