We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

MozMobileConnectionInfo Redirect 1

« DOM Reference

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 certified 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;


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.




Not part of any specification.

See also

Document Tags and Contributors

Last updated by: Sheppy,