PermissionHandlerOnShowPermissionPrompt Method |
Version 130.1.90
Called when a page should show a permission prompt.
Namespace: CefSharp.HandlerAssembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.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 IWebBrowser
- The ChromiumWebBrowser control
- browser IBrowser
- The browser object
- promptId UInt64
- Uniquely identifies the prompt.
- requestingOrigin String
- Is the URL origin requesting permission.
- requestedPermissions PermissionRequestType
- Is a combination of values from PermissionRequestType that represent the requested permissions.
- callback IPermissionPromptCallback
- Callback interface used for asynchronous continuation of permission prompts.
Return Value
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