Property RequestPermissionHandler
- Namespace
- DotNetBrowser.Permissions
- Assembly
- DotNetBrowser.dll
RequestPermissionHandler
Gets or sets a handler that is used when a web page requests a permission, for example to enable geolocation. The permission type and the information about the web page can be obtained from the passed request object.
IHandler<RequestPermissionParameters, RequestPermissionResponse> RequestPermissionHandler { get; set; }
Property Value
Remarks
Use the Grant() to grant the requested permission.
Use the Deny() to deny the requested permission.
If an exception occurs inside the handler implementation, the default behavior will be applied - the method Deny() will be used.
Exceptions
- ObjectDisposedException
The IPermissions has already been disposed.