Class (GI Struct)

WebKit-6.0WebKitGeolocationPositionSince 2.26

An opaque struct to provide position updates to a WebKit.GeolocationManager.

WebKitGeolocationPosition is an opaque struct used to provide position updates to a WebKit.GeolocationManager using webkit_geolocation_manager_update_position().

2.26

Index

Constructors

Properties

Methods

  • Set the position altitude.

    Parameters

    • altitude: number

      altitude in meters

    Returns void

  • Set the accuracy of position altitude.

    Parameters

    • altitude_accuracy: number

      accuracy of position altitude in meters

    Returns void

  • Set the position heading.

    Set the position heading, as a positive angle between the direction of movement and the North direction, in clockwise direction.

    Parameters

    • heading: number

      heading in degrees

    Returns void

  • Set the position timestamp.

    By default it's the time when the position was created.

    Parameters

    • timestamp: number

      timestamp in seconds since the epoch, or 0 to use current time

    Returns void