Developer   API   Sensor   GPS

GPS(native)

GPS class manages all operations with gps hardware.

Methods

  • dispose()
    Destroy object and release all underlying resources.
  • isAvailable() : Boolean
    Function returns true if GPS is available on the device. Otherwise it returns false.
  • pause()
    Pause sending callback data.
  • resume()
    Resume sending callback data.
  • start()
    This function starts sending position data. When new data are available, GPS object calls callback functions.
  • this() : GPS
    Constructs new GPS object.

Events

  • onPositionReceived(sender, timestamp, params)
    GPS object call this callback function, when new position data is available.
  • onStateChanged(sender, timestamp, state)
    GPS object call this callback function, when new state data is available.