PermissionHandlerOnShowPermissionPrompt Method |
Version 108.4.130
Called when a page should show a permission prompt.
Namespace:
CefSharp.Handler
Assembly:
CefSharp (in CefSharp.dll) Version: 108.4.130.0 (108.4.130.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