Gjsify LogoGjsify Logo

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

record

Hierarchy

  • GeolocationPosition

Index

Constructors

  • Create a new #WebKitGeolocationPosition

    Parameters

    • latitude: number

      a valid latitude in degrees

    • longitude: number

      a valid longitude in degrees

    • accuracy: number

      accuracy of location in meters

    Returns WebKit2.GeolocationPosition

Properties

name: string

Methods

  • free(): void
  • setAltitude(altitude: number): void
  • Set the position altitude

    Parameters

    • altitude: number

      altitude in meters

    Returns void

  • setAltitudeAccuracy(altitudeAccuracy: number): void
  • Set the accuracy of position altitude

    Parameters

    • altitudeAccuracy: number

      accuracy of position altitude in meters

    Returns void

  • setHeading(heading: number): void
  • 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

  • setSpeed(speed: number): void
  • Set the position speed

    Parameters

    • speed: number

      speed in meters per second

    Returns void

  • setTimestamp(timestamp: number): 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

  • Create a new #WebKitGeolocationPosition

    Parameters

    • latitude: number

      a valid latitude in degrees

    • longitude: number

      a valid longitude in degrees

    • accuracy: number

      accuracy of location in meters

    Returns WebKit2.GeolocationPosition

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method