Click or drag to resize
CfxGeolocationHandler Class

[This is preliminary documentation and is subject to change.]

Implement this structure to handle events related to geolocation permission requests. The functions of this structure will be called on the browser process UI thread.
Inheritance Hierarchy
SystemObject
  ChromiumCfxObject
    ChromiumCfxBase
      ChromiumCfxClientBase
        ChromiumCfxGeolocationHandler

Namespace: Chromium
Assembly: ChromiumFX (in ChromiumFX.dll)
Syntax
public class CfxGeolocationHandler : CfxClientBase

The CfxGeolocationHandler type exposes the following members.

Constructors
  NameDescription
Public methodCfxGeolocationHandler
Initializes a new instance of the CfxGeolocationHandler class
Top
Properties
  NameDescription
Public propertyCallbacksDisabled
When true, all CEF callback events are disabled for this handler. Incoming callbacks will return default values to CEF.
(Inherited from CfxClientBase.)
Public propertyNativePtr
Provides access to the underlying native cef struct. This is a refcounted client struct derived from cef_base_t. Add a ref in order to keep it alive when this managed object go out of scope.
(Inherited from CfxClientBase.)
Top
Events
  NameDescription
Public eventOnCancelGeolocationPermission
Called when a geolocation access request is canceled. |RequestId| is the unique ID for the permission request.
Public eventOnRequestGeolocationPermission
Called when a page requests permission to access geolocation information. |RequestingUrl| is the URL requesting permission and |RequestId| is the unique ID for the permission request. Return true (1) and call CfxGeolocationCallback.Continue() either in this function or at a later time to continue or cancel the request. Return false (0) to cancel the request immediately.
Top
Remarks
See also the original CEF documentation in cef/include/capi/cef_geolocation_handler_capi.h.
See Also