This API is available on Firefox OS for internal applications 仅。

MozMobileConnectionInfo interface allows to access connection information for voice or data. The navigator.mozMobileConnection uses it through its voice and data 特性。

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 只读
A MozMobileCellInfo object that gives access to cell location information.
MozMobileConnectionInfo.connected 只读

A boolean that indicates whether the connection is ready.

MozMobileConnectionInfo.emergencyCallsOnly 只读

A boolean that indicates whether only emergency calls are possible.

MozMobileConnectionInfo.lastKnownMcc 只读
A number representing the Mobile Country Code (MCC) of the last known network operator.
MozMobileConnectionInfo.network 只读
A MozMobileNetworkInfo object that gives access to the network operator information.
MozMobileConnectionInfo.relSignalStrength 只读
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 只读

A boolean that indicates whether the connection is going through a foreign operator (roaming) or not.

MozMobileConnectionInfo.signalStrength 只读
A number that gives the signal strength in dBm ,或 null if no service is available.
MozMobileConnectionInfo.state 只读

A string that gives the state of the connection.

MozMobileConnectionInfo.type 只读

A string that gives the type of connection.

方法

None.

规范

Not part of any specification.

另请参阅

元数据

  • 最后修改: