Class: GPS

GPS()

Functions for location tracking.

Constructor

new GPS()

Source:

Methods

(static) this.setListener(listenerFunction)

Sets the listening function
Parameters:
Name Type Description
listenerFunction function Callback function that receives location updates.
Source:

(static) this.startMonitoring(locationAccuracy, distanceFilter)

Starts the generation of updates that report the user’s current location
Parameters:
Name Type Description
locationAccuracy number Accuracy of the location data that your app wants to receive
distanceFilter number Minimum distance (measured in meters) a device must move horizontally before an update event is generated
Source:

(static) this.startMonitoringSignificant()

Starts the generation of updates based on significant location changes
Source:

(static) this.stopMonitoring()

Stops the generation of location updates
Source: