This API is available on Firefox OS for internal applications only.
The MozMobileConnectionInfo interface allows to access connection information for voice or data. The navigator.mozMobileConnection uses it through its voice and data properties.
Interface overview
interface MozMobileConnectionInfo
{
readonly attribute MozMobileCellInfo cell;
readonly attribute boolean connected;
readonly attribute boolean emergencyCallsOnly;
readonly attribute unsigned short lastKnownMcc;
readonly attribute MozMobileNetworkInfo network;
readonly attribute unsigned short? relSignalStrength;
readonly attribute boolean roaming;
readonly attribute object? signalStrength;
readonly attribute DOMString? state;
readonly attribute DOMString type;
};
Properties
MozMobileConnectionInfo.cellRead only- A
MozMobileCellInfoobject that gives access to cell location information. MozMobileConnectionInfo.connectedRead only- A boolean that indicates whether the connection is ready.
MozMobileConnectionInfo.emergencyCallsOnlyRead only- A boolean that indicates whether only emergency calls are possible.
MozMobileConnectionInfo.lastKnownMccRead only- A number representing the Mobile Country Code (MCC) of the last known network operator.
MozMobileConnectionInfo.networkRead only- A
MozMobileNetworkInfoobject that gives access to the network operator information. MozMobileConnectionInfo.relSignalStrengthRead only- A number that gives the signal strength, represented linearly as a number between 0 (weakest signal) and 100 (full signal) or
nullif no signal at all. MozMobileConnectionInfo.roamingRead only- A boolean that indicates whether the connection is going through a foreign operator (roaming) or not.
MozMobileConnectionInfo.signalStrengthRead only- A number that gives the signal strength in dBm, or
nullif no service is available. MozMobileConnectionInfo.stateRead only- A string that gives the state of the connection.
MozMobileConnectionInfo.typeRead only- A string that gives the type of connection.
Methods
None.
Specification
Not part of any specification.