:right-sidebar: True GeolocationManager =================================================================== .. currentmodule:: gi.repository.WebKit .. versionadded:: 2.26 .. class:: GeolocationManager(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` :Constructors: :: GeolocationManager(**properties) Methods ------- .. rst-class:: interim-class .. class:: GeolocationManager :no-index: .. method:: failed(error_message: str) -> None Notify ``manager`` that determining the position failed. .. versionadded:: 2.26 :param error_message: the error message .. method:: get_enable_high_accuracy() -> bool Get whether high accuracy is enabled. .. versionadded:: 2.26 .. method:: update_position(position: ~gi.repository.WebKit.GeolocationPosition) -> None Notify ``manager`` that position has been updated to ``position``. .. versionadded:: 2.26 :param position: a :obj:`~gi.repository.WebKit.GeolocationPosition` Properties ---------- .. rst-class:: interim-class .. class:: GeolocationManager :no-index: .. attribute:: props.enable_high_accuracy :type: bool Whether high accuracy is enabled. This is a read-only property that will be set to :const:`True` when a :obj:`~gi.repository.WebKit.GeolocationManager` needs to get accurate position updates. You can connect to notify::enable-high-accuracy signal to monitor it. .. versionadded:: 2.26 Signals ------- .. rst-class:: interim-class .. class:: GeolocationManager.signals :no-index: .. method:: start() -> bool 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 :func:`~gi.repository.WebKit.GeolocationManager.update_position` every time the position changes, or use :func:`~gi.repository.WebKit.GeolocationManager.failed` in case it isn't possible to determine the current position. If the signal is not handled, WebKit will try to determine the position using GeoClue if available. .. versionadded:: 2.26 .. method:: stop() -> None The signal is emitted to notify that ``manager`` doesn't need to receive position updates anymore. .. versionadded:: 2.26