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);
void startWatching(in nsIWifiListener aListener); |
void stopWatching(in nsIWifiListener aListener); |
Starts listening for changes to the WiFi access point list.
void startWatching( in nsIWifiListener aListener );
aListener
nsIWifiListener
object to receive notifications when the WiFi access point list changes.Stops listening for changes to the WiFi access point list.
void stopWatching( in nsIWifiListener aListener );
aListener
nsIWifiListener
object to stop receiving notifications on.