PermissionHandlerOnShowPermissionPrompt Method |
Version 112.3.0
Called when a page should show a permission prompt.
Namespace:
CefSharp.Handler
Assembly:
CefSharp (in CefSharp.dll) Version: 112.3.0.0 (112.3.0.0)
Syntax protected virtual bool OnShowPermissionPrompt(
IWebBrowser chromiumWebBrowser,
IBrowser browser,
ulong promptId,
string requestingOrigin,
PermissionRequestType requestedPermissions,
IPermissionPromptCallback callback
)
protected:
virtual bool OnShowPermissionPrompt(
IWebBrowser^ chromiumWebBrowser,
IBrowser^ browser,
unsigned long long 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:
BooleanReturn 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