MozMobileNetworkInfo.state

  • Revision slug: Web/API/MozMobileNetworkInfo.state
  • Revision title: MozMobileNetworkInfo.state
  • Revision id: 509863
  • Created:
  • Creator: Sheppy
  • Is current revision? Yes
  • Comment

Revision Content

{{ domref() }}

{{ non-standard_header() }}

{{ B2GOnlyHeader2('privileged') }}

Summary

The state is a read-only property that gives the state of the network operator.

Syntax

var operator = navigator.mozMobileConnection.data.network.state

Value

Return a string.

Possible values are:

  • available
  • connected
  • forbidden

If the state of the network operator is unknown, this property is null.

Specification

Not part of any specification.

See also

  • {{domxref("MozMobileNetworkInfo")}}
  • {{domxref("MozMobileConnection")}}
  • {{domxref("MozMobileConnectionInfo")}}

Revision Source

<p>{{ domref() }}</p>
<p>{{ non-standard_header() }}</p>
<p>{{ B2GOnlyHeader2('privileged') }}</p>
<h2 id="Summary">Summary</h2>
<p>The <code>state</code> is a read-only property that gives the state of the network operator.</p>
<h2 id="Syntax">Syntax</h2>
<pre>
var operator = navigator.mozMobileConnection.data.network.state</pre>
<h2 id="Value">Value</h2>
<p>Return a string.</p>
<p>Possible values are:</p>
<ul>
 <li><code>available</code></li>
 <li><code>connected</code></li>
 <li><code>forbidden</code></li>
</ul>
<p>If the state of the network operator is unknown, this property is <code>null</code>.</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("MozMobileNetworkInfo")}}</li>
 <li>{{domxref("MozMobileConnection")}}</li>
 <li>{{domxref("MozMobileConnectionInfo")}}</li>
</ul>
Revert to this revision