Revision 357739 of MozMobileNetworkInfo

  • Revision slug: DOM/MozMobileNetworkInfo
  • Revision title: MozMobileNetworkInfo
  • Revision id: 357739
  • Created:
  • Creator: Jeremie
  • Is current revision? No
  • Comment

Revision Content

{{ domref() }}

{{ non-standard_header() }}

The MozMobileNetworkInfo interface allow to access information related to the network carrier. The {{domxref("window.navigator.mozMobileConnection","navigator.mozMobileConnection")}} uses it through its voice.network and data.network properties.

Interface

interface MozMobileNetworkInfo
{
  readonly attribute DOMString longName;
  readonly attribute unsigned short mcc;
  readonly attribute unsigned short mnc;
  readonly attribute DOMString shortName;
  readonly attribute DOMString state;
};

Properties

Name Type Description
longName string  
mcc unsigned short  
mnc unsigned short  
shortName string  
state string  
type string  

Methods

None.

Specification

Not part of any specification

See also

  • {{ domxref("window.navigator.mozMobileConnection","navigator.mozMobileConnection") }}

Revision Source

<p>{{ domref() }}</p>
<p>{{ non-standard_header() }}</p>
<p>The <code>MozMobileNetworkInfo</code> interface allow to access information related to the network carrier. The {{domxref("window.navigator.mozMobileConnection","navigator.mozMobileConnection")}} uses it through its <code>voice.network</code> and <code>data.network</code> properties.</p>
<h2 id="Interface">Interface</h2>
<pre>
interface MozMobileNetworkInfo
{
&nbsp; readonly attribute DOMString longName;
&nbsp; readonly attribute unsigned short mcc;
&nbsp; readonly attribute unsigned short mnc;
&nbsp; readonly attribute DOMString shortName;
&nbsp; readonly attribute DOMString state;
};</pre>
<h2 id="Properties">Properties</h2>
<table class="standard-table">
  <thead>
    <tr>
      <th scope="col">Name</th>
      <th scope="col">Type</th>
      <th scope="col">Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><code>longName</code></td>
      <td><code>string</code></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td><code>mcc</code></td>
      <td><code>unsigned short</code></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td><code>mnc</code></td>
      <td><code>unsigned short</code></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td><code>shortName</code></td>
      <td><code>string</code></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td><code>state</code></td>
      <td><code>string</code></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td><code>type</code></td>
      <td><code>string</code></td>
      <td>&nbsp;</td>
    </tr>
  </tbody>
</table>
<h2 id="Methods">Methods</h2>
<p>None.</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("window.navigator.mozMobileConnection","navigator.mozMobileConnection") }}</li>
</ul>
Revert to this revision