: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` 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 :obj:`~gi.repository.WebKit.GeolocationManager`\::start signal is emitted. If the signal is handled and returns :const:`True`, the application is responsible for providing the position every time it's updated by calling :func:`~gi.repository.WebKit.GeolocationManager.update_position`. The signal :obj:`~gi.repository.WebKit.GeolocationManager`\::stop will be emitted when location updates are no longer needed. 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 The type of the None singleton. .. versionadded:: 2.26 Signals ------- .. rst-class:: interim-class .. class:: GeolocationManager.signals :no-index: .. method:: start() -> bool The type of the None singleton. .. versionadded:: 2.26 .. method:: stop() -> None The type of the None singleton. .. versionadded:: 2.26