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

JavaScript
interface MozMobileConnectionInfo
{
  readonly attribute <a href="dom/MozMobileCellInfo" title="The documentation about this has not yet been written; please consider contributing!"><code>MozMobileCellInfo</code></a> cell;
  readonly attribute boolean connected;
  readonly attribute boolean emergencyCallsOnly;
  readonly attribute unsigned short lastKnownMcc;
  readonly attribute <a href="dom/MozMobileNetworkInfo" title="The documentation about this has not yet been written; please consider contributing!"><code>MozMobileNetworkInfo</code></a> 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

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/mozmobileconnectioninfo

API B2G Firefox OS Non-standard Reference Référence