Click or drag to resize

IPermissionHandlerOnShowPermissionPrompt Method

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

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

Parameters

chromiumWebBrowser
Type: CefSharpIWebBrowser
The ChromiumWebBrowser control
browser
Type: CefSharpIBrowser
The browser object
promptId
Type: SystemUInt64
Uniquely identifies the prompt.
requestingOrigin
Type: SystemString
Is the URL origin requesting permission.
requestedPermissions
Type: CefSharpPermissionRequestType
Is a combination of values from PermissionRequestType that represent the requested permissions.
callback
Type: CefSharpIPermissionPromptCallback
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