GeolocationManager

class GeolocationManager(pointer: <Error class: unknown class><<Error class: unknown class>>)

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

Since

2.26

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

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 updates. You can connect to notify::enable-high-accuracy signal to monitor it.

Link copied to clipboard
val webkitGeolocationManagerPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
fun connectStart(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Boolean): <Error class: unknown class>

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.

Link copied to clipboard
fun connectStop(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

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

Link copied to clipboard
fun failed(errorMessage: String)

Notify @manager that determining the position failed.

Link copied to clipboard

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