This must be called on the main thread Interface provides location information to the nsGeolocator via the
nsIDOMGeolocationCallback interface. After
startup() is called, any geo location change should call callback.update().
nsIGeolocationProvider interface provides information about the current users location to interested parties via
nsIGeolocationUpdate. After the provider has been initialized, any changes to location should call
You may find the WiFi access point monitoring service useful if you wish to implement support for WiFi-based location services. See
dom/src/geolocation/NetworkGeolocationProvider.js for an example of how to write a geolocation provider.
isReady()Obsolete since Gecko 1.9.2 (Firefox 3.6 / Thunderbird 3.1 / Fennec 1.0)
Reports whether or not the device is ready and has a position.
true if the device is ready and has a position available to return; otherwise
Shuts down the location device.
Start up the provider. This is called before any other method and may be called multiple times.
Attaches a callback listener to be notified when a location change is observed.
void watch( in nsIGeolocationUpdate callback );
nsIGeolocationUpdateto be notified when position changes. Your location provider should call this routine whenever new position data is available.