Click or drag to resize

PermissionHandler Class

Version 118.6.80
Implement this interface to handle events related to permission requests. It's important to note that the methods of this interface are called on a CEF UI thread, which by default is not the same as your application UI thread.
Inheritance Hierarchy
SystemObject
  CefSharp.HandlerPermissionHandler

Namespace:  CefSharp.Handler
Assembly:  CefSharp (in CefSharp.dll) Version: 118.6.80.0 (118.6.80.0)
Syntax
public class PermissionHandler : IPermissionHandler

The PermissionHandler type exposes the following members.

Constructors
  NameDescription
Public methodPermissionHandler
Initializes a new instance of the PermissionHandler class
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnDismissPermissionPrompt
Called when a permission prompt handled via OnShowPermissionPrompt(IWebBrowser, IBrowser, UInt64, String, PermissionRequestType, IPermissionPromptCallback) is dismissed. result will be the value passed to Continue(PermissionRequestResult) or Ignore if the dialog was dismissed for other reasons such as navigation, browser closure, etc. This method will not be called if OnShowPermissionPrompt(IWebBrowser, IBrowser, UInt64, String, PermissionRequestType, IPermissionPromptCallback) returned false for promptId.
Protected methodOnRequestMediaAccessPermission
Called when a page requests permission to access media. With the Chrome runtime, default handling will display the permission request UI.With the Alloy runtime, default handling will deny the request.This method will not be called if the "--enable-media-stream" command-line switch is used to grant all permissions.
Protected methodOnShowPermissionPrompt
Called when a page should show a permission prompt.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also