This interface can be used to be alerted when the list of available WiFi access points changes.
1.0
28
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
nsIWifiListener
object 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
nsIWifiListener
object to stop receiving notifications on.