WifiManager.getKnownNetworks

  • Revision slug: Web/API/WifiManager.getKnownNetworks
  • Revision title: WifiManager.getKnownNetworks
  • Revision id: 467137
  • Created:
  • Creator: Jeremie
  • Is current revision? No
  • Comment

Revision Content

{{ non-standard_header() }}

{{ B2GOnlyHeader2('certified') }}

Summary

The getKnownNetworks method is used to retrieve the whole list of WiFi networks the device knows, regardless they are available or not in the area surrounding the device. A known network is any network the device was previously associate with by using the {{domxref("WifiManager.associate()")}} method.

Syntax

var request = navigator.mozWifiManager.getKnownNetworks();

Returns

It returns a DOMRequest to handle the success or error of the operation. If the operation is successful, the request's result is an Array of {{Anch("Network")}} object.

Network

{{Page("/en-US/docs/Web/API/WifiManager.getNetworks","Network")}}

Specification

Not part of any specification.

See also

Revision Source

<p>{{ non-standard_header() }}</p>
<p>{{ B2GOnlyHeader2('certified') }}</p>
<h2 id="Summary">Summary</h2>
<p>The <code>getKnownNetworks</code> method is used to retrieve the whole list of WiFi networks the device knows, regardless they are available or not in the area surrounding the device. A known network is any network the device was previously associate with by using the {{domxref("WifiManager.associate()")}} method.</p>
<h2 id="Syntax">Syntax</h2>
<pre>
var request = navigator.mozWifiManager.getKnownNetworks();</pre>
<h3 id="Returns">Returns</h3>
<p>It returns a <a href="https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest" title="/en-US/docs/Web/API/DOMRequest"><code>DOMRequest</code></a> to handle the success or error of the operation. If the operation is successful, the request's <code>result</code> is an Array of {{Anch("Network")}} object.</p>
<h4 id="Network">Network</h4>
<p>{{Page("/en-US/docs/Web/API/WifiManager.getNetworks","Network")}}</p>
<h2 id="Specification" name="Specification">Specification</h2>
<p>Not part of any specification.</p>
<h2 id="See_also">See also</h2>
<ul>
  <li>{{domxref("WifiManager")}}</li>
  <li>{{domxref("MozWifiStatusChangeEvent")}}</li>
  <li>The <a href="/en-US/docs/WebAPI/WiFi_Information" title="/en-US/docs/WebAPI/WiFi_Information">WifI Information API</a></li>
</ul>
Revert to this revision