pub trait ICoreWebView2PermissionRequestedEventArgs: IUnknown {
// Required methods
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§
Sourceunsafe fn get_uri(&self, uri: *mut LPWSTR) -> HRESULT
unsafe fn get_uri(&self, uri: *mut LPWSTR) -> HRESULT
The origin of the web content that requests the permission.
Sourceunsafe 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.
Sourceunsafe 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.
Sourceunsafe 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.
Sourceunsafe fn put_state(&self, state: PermissionState) -> HRESULT
unsafe fn put_state(&self, state: PermissionState) -> HRESULT
Sets the State property.
Sourceunsafe 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§
Source§impl ComInterface for dyn ICoreWebView2PermissionRequestedEventArgs
impl ComInterface for dyn ICoreWebView2PermissionRequestedEventArgs
Source§const IID: IID = IID_ICORE_WEB_VIEW2_PERMISSION_REQUESTED_EVENT_ARGS
const IID: IID = IID_ICORE_WEB_VIEW2_PERMISSION_REQUESTED_EVENT_ARGS
The associated id for this interface
Source§type VTable = ICoreWebView2PermissionRequestedEventArgsVTable
type VTable = ICoreWebView2PermissionRequestedEventArgsVTable
A COM compatible V-Table
Source§fn is_iid_in_inheritance_chain(riid: &GUID) -> bool
fn is_iid_in_inheritance_chain(riid: &GUID) -> bool
Check whether a given IID is in the inheritance hierarchy of this interface
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".