GeolocationManager

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_update_position(). The signal #WebKitGeolocationManager::stop will be emitted when location updates are no longer needed.

Constructors

this
this(WebKitGeolocationManager* webKitGeolocationManager, bool ownedRef)

Sets our main struct and passes it to the parent class.

Members

Functions

addOnStart
gulong addOnStart(bool delegate(GeolocationManager) dlg, ConnectFlags connectFlags)

The signal is emitted to notify that @manager needs to start receiving position updates. After this signal is emitted the user should provide the updates using webkit_geolocation_manager_update_position() every time the position changes, or use webkit_geolocation_manager_failed() in case it isn't possible to determine the current position.

addOnStop
gulong addOnStop(void delegate(GeolocationManager) dlg, ConnectFlags connectFlags)

The signal is emitted to notify that @manager doesn't need to receive position updates anymore.

failed
void failed(string errorMessage)

Notify @manager that determining the position failed.

getEnableHighAccuracy
bool getEnableHighAccuracy()

Get whether high accuracy is enabled.

getGeolocationManagerStruct
WebKitGeolocationManager* getGeolocationManagerStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

updatePosition
void updatePosition(GeolocationPosition position)

Notify @manager that position has been updated to @position.

Static functions

getType
GType getType()

Variables

webKitGeolocationManager
WebKitGeolocationManager* webKitGeolocationManager;

the main Gtk struct

Meta

Since

2.26