MozMobileNetworkInfo Redirect 1

« DOM Reference

Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

This API is available on Firefox OS for privileged or certified applications only.

Summary

The MozMobileNetworkInfo interface allows access to information related to the network carrier. The navigator.mozMobileConnection uses it through its voice.network and data.network properties.

Interface overview

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

MozMobileNetworkInfo.longName Read only
A string representing the long name of the network operator.
MozMobileNetworkInfo.mcc Read only
A number representing the Mobile Country Code (MCC) of the network operator.
MozMobileNetworkInfo.mnc Read only
A number representing the Mobile Network Code (MNC) of the network operator.
MozMobileNetworkInfo.shortName Read only
A string representing the short name of the network operator.
MozMobileNetworkInfo.state Read only
A string that gives the state of the network operator.

Methods

None.

Specification

Not part of any specification

See also

Document Tags and Contributors

 Last updated by: Sheppy,