GeolocationManager#
Added in version 2.26.
Superclasses: Object
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 GeolocationManager
::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 update_position()
. The signal GeolocationManager
::stop
will be emitted when location updates are no longer needed.
Methods#
- class GeolocationManager
- failed(error_message: str) None #
Notify
manager
that determining the position failed.Added in version 2.26.
- Parameters:
error_message – the error message
- update_position(position: GeolocationPosition) None #
Notify
manager
that position has been updated toposition
.Added in version 2.26.
- Parameters:
position – a
GeolocationPosition