MozMobileConnectionInfo

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.cell Read only
A MozMobileCellInfo object that gives access to cell location information.
MozMobileConnectionInfo.connected Read only
A boolean that indicates whether the connection is ready.
MozMobileConnectionInfo.emergencyCallsOnly Read only
A boolean that indicates whether only emergency calls are possible.
MozMobileConnectionInfo.lastKnownMcc Read only
A number representing the Mobile Country Code (MCC) of the last known network operator.
MozMobileConnectionInfo.network Read only
A MozMobileNetworkInfo object that gives access to the network operator information.
MozMobileConnectionInfo.relSignalStrength Read only
A number that gives the signal strength, represented linearly as a number between 0 (weakest signal) and 100 (full signal) or null if no signal at all.
MozMobileConnectionInfo.roaming Read only
A boolean that indicates whether the connection is going through a foreign operator (roaming) or not.
MozMobileConnectionInfo.signalStrength Read only
A number that gives the signal strength in dBm, or null if no service is available.
MozMobileConnectionInfo.state Read only
A string that gives the state of the connection.
MozMobileConnectionInfo.type Read only
A string that gives the type of connection.

Methods

None.

Specification

Not part of any specification.

See also

Document Tags and Contributors

 Contributors to this page: chrisdavidmills, teoli, MHasan, kscarfone, justinpotts, Sheppy, Jeremie
 Last updated by: chrisdavidmills,