nsIWifiMonitor 编辑
netwerk/wifi/nsIWifiMonitor.idl
Scriptable This interface can be used to be alerted when the list of available WiFi access points changes. 1.0 66 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.
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论