mozilla

Revision 372655 of MozMobileICCInfo

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

Revision Content

{{ domref() }}

{{ non-standard_header() }}

{{ B2GOnlyHeader2('certified') }}

The MozMobileICCInfo interface allow to access access to information stored in the device's ICC card. The {{domxref("window.navigator.mozMobileConnection","navigator.mozMobileConnection")}} uses it through its {{domxref("MozMobileConnection.iccInfo","iccInfo")}} property.

Interface overview

interface MozMobileICCInfo
{
  readonly attribute DOMString iccid;
  readonly attribute boolean isDisplayNetworkNameRequired;
  readonly attribute boolean isDisplaySpnRequired;
  readonly attribute unsigned short mcc;
  readonly attribute unsigned short mnc;
  readonly attribute DOMString msisdn;
  readonly attribute DOMString spn;
};

Properties

{{domxref("MozMobileICCInfo.iccid")}} {{readonlyinline}}
A string representing the Integrated Circuit Card Identifier.
{{domxref("MozMobileICCInfo.isDisplayNetworkNameRequired")}} {{readonlyinline}}
A boolean that indicates the Network name must be a part of any displayed carrier name.
{{domxref("MozMobileICCInfo.isDisplaySpnRequired")}} {{readonlyinline}}
A boolean that indicates the Service provider name must be a part of any displayed carrier name.
{{domxref("MozMobileICCInfo.mcc")}} {{readonlyinline}}
A number representing the Mobile Country Code (MCC) of the subscriber's home network.
{{domxref("MozMobileICCInfo.mnc")}} {{readonlyinline}}
A number representing the Mobile Network Code (MNC) of the subscriber's home network.
{{domxref("MozMobileICCInfo.msisdn")}} {{readonlyinline}}
A string representing the Mobile Station ISDN Number (MSISDN) of the subscriber's, aka his phone number.
{{domxref("MozMobileICCInfo.spn")}} {{readonlyinline}}
A string representing the Service Provider Name (SPN) of the subscriber's home network.

Methods

None.

Specification

Not part of any specification

See also

  • {{ domxref("MozMobileICCInfo") }}
  • {{ domxref("MozMobileNetworkInfo") }}

Revision Source

<p>{{ domref() }}</p>
<p>{{ non-standard_header() }}</p>
<p>{{ B2GOnlyHeader2('certified') }}</p>
<p>The <code>MozMobileICCInfo</code> interface allow to access access to information stored in the device's <abbr title="Integrated Circuit Card">ICC</abbr> card. The {{domxref("window.navigator.mozMobileConnection","navigator.mozMobileConnection")}} uses it through its {{domxref("MozMobileConnection.iccInfo","iccInfo")}} property.</p>
<h2 id="Interface_overview">Interface overview</h2>
<pre>
interface MozMobileICCInfo
{
  readonly attribute DOMString iccid;
  readonly attribute boolean isDisplayNetworkNameRequired;
  readonly attribute boolean isDisplaySpnRequired;
  readonly attribute unsigned short mcc;
  readonly attribute unsigned short mnc;
  readonly attribute DOMString msisdn;
  readonly attribute DOMString spn;
};</pre>
<h2 id="Properties">Properties</h2>
<dl>
  <dt>
    {{domxref("MozMobileICCInfo.iccid")}} {{readonlyinline}}</dt>
  <dd>
    A string representing the Integrated Circuit Card Identifier.</dd>
  <dt>
    {{domxref("MozMobileICCInfo.isDisplayNetworkNameRequired")}} {{readonlyinline}}</dt>
  <dd>
    A boolean that indicates the Network name must be a part of any displayed carrier name.</dd>
  <dt>
    {{domxref("MozMobileICCInfo.isDisplaySpnRequired")}} {{readonlyinline}}</dt>
  <dd>
    A boolean that indicates the Service provider name must be a part of any displayed carrier name.</dd>
  <dt>
    {{domxref("MozMobileICCInfo.mcc")}} {{readonlyinline}}</dt>
  <dd>
    A number representing the <a href="http://en.wikipedia.org/wiki/Mobile_country_code" rel="external" title="http://en.wikipedia.org/wiki/Mobile_country_code">Mobile Country Code (MCC)</a> of the subscriber's home network.</dd>
  <dt>
    {{domxref("MozMobileICCInfo.mnc")}} {{readonlyinline}}</dt>
  <dd>
    A number representing the <a href="http://en.wikipedia.org/wiki/Mobile_country_code" rel="external" title="http://en.wikipedia.org/wiki/Mobile_country_code">Mobile Network Code (MNC)</a> of the subscriber's home network.</dd>
  <dt>
    {{domxref("MozMobileICCInfo.msisdn")}} {{readonlyinline}}</dt>
  <dd>
    A string representing the Mobile Station <abbr title="Integrated Services Digital Network">ISDN</abbr> Number (MSISDN) of the subscriber's, aka his phone number.</dd>
  <dt>
    {{domxref("MozMobileICCInfo.spn")}} {{readonlyinline}}</dt>
  <dd>
    A string representing the Service Provider Name (SPN) of the subscriber's home network.</dd>
</dl>
<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("MozMobileICCInfo") }}</li>
  <li>{{ domxref("MozMobileNetworkInfo") }}</li>
</ul>
Revert to this revision