Click or drag to resize
IGeolocationHandlerOnRequestGeolocationPermission Method
Version 51.0.0
Called when a page requests permission to access geolocation information.

Namespace: CefSharp
Assembly: CefSharp (in CefSharp.dll) Version: 51.0.0.0 (51.0.0.0)
Syntax
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: Boolean
true to allow the request and false to deny
See Also