DotNetBrowser  1.14
Public Member Functions | List of all members
DotNetBrowser.IPermissionHandler Interface Reference

Allows handling permission requests from web pages such as geolocation, desktop notification permission requests, etc. Any web page can request permissions for the required type. More...

Public Member Functions

PermissionStatus OnRequestPermission (PermissionRequest request)
 This method is invoked when a web page requests specific permission. If an exception is thrown from this method, the default behavior will be used, the PermissionStatus.DENIED status will be return to the web page. More...
 

Detailed Description

Allows handling permission requests from web pages such as geolocation, desktop notification permission requests, etc. Any web page can request permissions for the required type.

Member Function Documentation

PermissionStatus DotNetBrowser.IPermissionHandler.OnRequestPermission ( PermissionRequest  request)

This method is invoked when a web page requests specific permission. If an exception is thrown from this method, the default behavior will be used, the PermissionStatus.DENIED status will be return to the web page.

Parameters
requestprovides details about permission request.
Returns
PermissionStatus.GRANTED if the given permission request is granted, otherwise PermissionStatus.DENIED.