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 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
只读
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
只读
MozMobileConnectionInfo.network
只读
MozMobileNetworkInfo
object that gives access to the network operator information.
MozMobileConnectionInfo.relSignalStrength
只读
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
只读
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.
Archive
CFStateChangeEvent
DataErrorEvent
IccCardLockError
IccCardLockErrorEvent
MozCellBroadcastEvent
MozEmergencyCbModeEvent
MozIccManager
MozMobileCFInfo
MozMobileCellInfo
MozMobileConnection
MozMobileConnectionInfo
MozMobileICCInfo
MozMobileNetworkInfo
MozOtaStatusEvent
MozStkCommandEvent
USSDReceivedEvent