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
enum MobileNetworkState {"available", "connected", "forbidden"};
interface MozMobileNetworkInfo
{
readonly attribute DOMString? longName;
readonly attribute DOMString? mcc;
readonly attribute DOMString? mnc;
readonly attribute DOMString? shortName;
readonly attribute MobileNetworkState? state;
};
Properties
MozMobileNetworkInfo.longNameRead only- A string representing the long name of the network operator.
MozMobileNetworkInfo.mccRead only- A number representing the Mobile Country Code (MCC) of the network operator.
MozMobileNetworkInfo.mncRead only- A number representing the Mobile Network Code (MNC) of the network operator.
MozMobileNetworkInfo.shortNameRead only- A string representing the short name of the network operator.
MozMobileNetworkInfo.stateRead 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
Tags:
Contributors to this page:
chrisdavidmills,
fscholz,
kscarfone,
jsx,
hsinyi,
Aleksandr178,
Sheppy,
eviljeff,
justinpotts,
teoli,
Jeremie
Last updated by:
chrisdavidmills,