OnPermissionRequested
Interface AntView
Type: Event
Parameters: Boolean UserInitiated TxPermissionKind PermissionKind TxPermissionState* State String Uri Boolean* Handled
Triggered when the content in the rendered page is requesting a permission to protected resources.
The variables UserInitiated, PermissionKind and Uri are read-only.
UserInitiated is set to true when the permission was requested on behalf of a user action such as clicking on a hyperlink.
PermissionKind tell you the type of resource that is requested.
The Uri returns the URL of the page that requests the permission.
The boolean Handled is currently not supported in version 1.x, support for this parameter is available starting in AntView version 2.0.
Via State you can notify the WebView2 control if you want to allow or disallow the permission request. You can also fall back to the default setting as determined at application level by an administrator.
More details can be found at the Microsoft .Net interface: CoreWebView2.PermissionRequested.
Introduced in AntView release 1.1.164
Parameter Handled was added in AntView release 1.1.180 in anticipation of adding support for it as it was added in WebView2 version 1.0.1185.39 whereas AntView 1.1 is build against WebView2 API version 1.0.1108.44.
AntView - The MS Edge WebView2 ActiveX control Date last changed: 09/25/2024