webkit.geolocation_manager

Module for [GeolocationManager] class

Types 3

Geolocation manager.

WebKitGeolocationManager provides API to get the geographical position of the user. Once a #WebKitGeolocationPermissionRequest is allowed, when WebKit needs to know the user location #WebKitGeolocationManager::start signal is emitted. If the signal is handled and returns true, the application is responsible for providing the position every time it's updated by calling webkit.geolocation_manager.GeolocationManager.updatePosition. The signal #WebKitGeolocationManager::stop will be emitted when location updates are no longer needed.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
GeolocationManager self() nothrowReturns `this`, for use in `with` statements.
GeolocationManagerGidBuilder builder() static nothrowGet builder for [webkit.geolocation_manager.GeolocationManager] Returns: New builder object
bool enableHighAccuracy() @property nothrowGet `enableHighAccuracy` property. Returns: Whether high accuracy is enabled. This is a read-only property that will be set to true when a #WebKitGeolocationManager needs to get accurate position u...
void failed(string errorMessage) nothrowNotify manager that determining the position failed.
bool getEnableHighAccuracy() nothrowGet whether high accuracy is enabled. Returns: Whether the setting is enabled.
void updatePosition(webkit.geolocation_position.GeolocationPosition position) nothrowNotify manager that position has been updated to position.
gulong connectStart(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == bool) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : webkit.geolocation_manager.GeolocationManager))) && Parameters!T.length < 2) nothrowConnect to `Start` signal.
gulong connectStop(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : webkit.geolocation_manager.GeolocationManager))) && Parameters!T.length < 2) nothrowConnect to `Stop` signal.
Constructors
this(void * ptr, Flag!"Take" take)