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

Namespace: CefSharp
Assembly: CefSharp (in CefSharp.dll) Version: 55.0.0.0 (55.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
Return 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