IGeolocationHandlerOnRequestGeolocationPermission Method |
Version 57.0.0
Called when a page requests permission to access geolocation information.
Namespace: CefSharpAssembly: CefSharp (in CefSharp.dll) Version: 57.0.0.0 (57.0.0.0)
Syntax bool OnRequestGeolocationPermission(
IWebBrowser browserControl,
IBrowser browser,
string requestingUrl,
int requestId,
IGeolocationCallback callback
)
bool OnRequestGeolocationPermission(
IWebBrowser^ browserControl,
IBrowser^ browser,
String^ requestingUrl,
int requestId,
IGeolocationCallback^ callback
)
Parameters
- browserControl
- Type: CefSharpIWebBrowser
the browser control - browser
- Type: CefSharpIBrowser
the browser object - requestingUrl
- Type: SystemString
the URL requesting permission - requestId
- Type: SystemInt32
the unique ID for the permission request - callback
- Type: CefSharpIGeolocationCallback
Callback interface used for asynchronous continuation of geolocation permission requests.
Return Value
Type:
BooleanReturn true and call IGeolocationCallback.Continue() either in this method or at a later time to continue or cancel the request. Return false to cancel the request immediately.
See Also