Event dispatching

The Geolocation class dispatches events based on any activity detected by the device’s location sensor.

You can control the time interval for geolocation updates using the setRequestedUpdateInterval() method. The time interval is measured in milliseconds.

Note: The update interval is only used as a hint to conserve the battery power. The actual time between location updates can be greater or smaller than this value.

If you do not use the setRequestedUpdateInterval() method, then the host device returns updates based on its default interval.