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 _gType() @property
GeolocationManager self()Returns `this`, for use in `with` statements.
GeolocationManagerGidBuilder builder()Get builder for [webkit.geolocation_manager.GeolocationManager] Returns: New builder object
bool enableHighAccuracy() @propertyGet `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)Notify manager that determining the position failed.
bool getEnableHighAccuracy()Get whether high accuracy is enabled. Returns: Whether the setting is enabled.
void updatePosition(webkit.geolocation_position.GeolocationPosition position)Notify 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)Connect 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)Connect to `Stop` signal.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder for [webkit.geolocation_manager.GeolocationManager]