This API is available on Firefox OS for privileged or certified applications 仅。
MozMobileNetworkInfo
interface allows access to information related to the network carrier. The
navigator.mozMobileConnection
uses it through its
voice.network
and
data.network
特性。
enum MobileNetworkState {"available", "connected", "forbidden"};
interface MozMobileNetworkInfo
{
readonly attribute DOMString? longName;
readonly attribute DOMString? mcc;
readonly attribute DOMString? mnc;
readonly attribute DOMString? shortName;
readonly attribute MobileNetworkState? state;
};
MozMobileNetworkInfo.longName
只读
A string representing the long name of the network operator.
MozMobileNetworkInfo.mcc
只读
MozMobileNetworkInfo.mnc
只读
MozMobileNetworkInfo.shortName
只读
A string representing the short name of the network operator.
MozMobileNetworkInfo.state
只读
A string that gives the state of the network operator.
None.
Not part of any specification
Archive
CFStateChangeEvent
DataErrorEvent
IccCardLockError
IccCardLockErrorEvent
MozCellBroadcastEvent
MozEmergencyCbModeEvent
MozIccManager
MozMobileCFInfo
MozMobileCellInfo
MozMobileConnection
MozMobileConnectionInfo
MozMobileICCInfo
MozMobileNetworkInfo
MozOtaStatusEvent
MozStkCommandEvent
USSDReceivedEvent