Table of contents
- 1. Method overview
- 2. Methods
- 2.1. startWatching()
- 2.2. stopWatching()
- 3. See also
This interface can be used to be alerted when the list of available WiFi access points changes.
1.0
11.0
Introduced
Gecko 1.9.1
Inherits from:
nsISupports
Last changed in Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0)
This is used, for example, by Geolocation to use WiFi access points for location detection.
Implemented by @mozilla.org/wifi/monitor;1 as a service:
var wifiMonitor = Components.classes["@mozilla.org/wifi/monitor;1"]
.getService(Components.interfaces.nsIWifiMonitor);
Method overview
void startWatching(in nsIWifiListener aListener); |
void stopWatching(in nsIWifiListener aListener); |
Methods
startWatching()
Starts listening for changes to the WiFi access point list.
void startWatching( in nsIWifiListener aListener );
Parameters
aListener- The
nsIWifiListenerobject to receive notifications when the WiFi access point list changes.
stopWatching()
Stops listening for changes to the WiFi access point list.
void stopWatching( in nsIWifiListener aListener );
Parameters
aListener- The
nsIWifiListenerobject to stop receiving notifications on.

