Click or drag to resize

IPermissionHandler.OnShowPermissionPrompt Method

Version 118.6.80
Called when a page should show a permission prompt.

Namespace:  CefSharp
Assembly:  CefSharp (in CefSharp.dll) Version: 118.6.80.0 (118.6.80.0)
Syntax
bool OnShowPermissionPrompt(
	IWebBrowser chromiumWebBrowser,
	IBrowser browser,
	ulong promptId,
	string requestingOrigin,
	PermissionRequestType requestedPermissions,
	IPermissionPromptCallback callback
)

Parameters

chromiumWebBrowser
Type: CefSharp.IWebBrowser
The ChromiumWebBrowser control
browser
Type: CefSharp.IBrowser
The browser object
promptId
Type: System.UInt64
Uniquely identifies the prompt.
requestingOrigin
Type: System.String
Is the URL origin requesting permission.
requestedPermissions
Type: CefSharp.PermissionRequestType
Is a combination of values from PermissionRequestType that represent the requested permissions.
callback
Type: CefSharp.IPermissionPromptCallback
Callback interface used for asynchronous continuation of permission prompts.

Return Value

Type: Boolean
Return true and call Continue(PermissionRequestResult) either in this method or at a later time to continue or cancel the request. Return false to proceed with default handling. With the Chrome runtime, default handling will display the permission prompt UI. With the Alloy runtime, default handling is Ignore.
See Also