• Skip to main content
  • Select language
  • Skip to search
MDN Web Docs
  • Technologies
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs / DOM
    • WebExtensions
    • MathML
  • References & Guides
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
B2G OS
  1. MDN
  2. Archive of obsolete content
  3. B2G OS
  4. B2G OS APIs
  5. MozMobileNetworkInfo

MozMobileNetworkInfo

In This Article
  1. Summary
  2. Interface overview
  3. Properties
  4. Methods
  5. Specification
  6. See also

This API is available on Firefox OS for privileged or certified applications only.

Summary

The MozMobileNetworkInfo interface allows access to information related to the network carrier. The navigator.mozMobileConnection uses it through its voice.network and data.network properties.

Interface overview

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

Properties

MozMobileNetworkInfo.longName Read only
A string representing the long name of the network operator.
MozMobileNetworkInfo.mcc Read only
A number representing the Mobile Country Code (MCC) of the network operator.
MozMobileNetworkInfo.mnc Read only
A number representing the Mobile Network Code (MNC) of the network operator.
MozMobileNetworkInfo.shortName Read only
A string representing the short name of the network operator.
MozMobileNetworkInfo.state Read only
A string that gives the state of the network operator.

Methods

None.

Specification

Not part of any specification

See also

  • navigator.mozMobileConnection
  • MozMobileConnection
  • MozMobileConnectionInfo

Document Tags and Contributors

Tags: 
  • API
  • B2G
  • Firefox OS
  • Interface
  • Mobile
  • NeedsExample
  • Non-standard
  • Reference
  • Référence
 Contributors to this page: chrisdavidmills, fscholz, kscarfone, jsx, hsinyi, Aleksandr178, Sheppy, eviljeff, justinpotts, teoli, Jeremie
 Last updated by: chrisdavidmills, Feb 27, 2017, 2:07:44 AM
See also
  1. Mobile Connection API
  2. Archive
  3. Events
    1. icccardlockerror
    2. cardstatechange
  4. Related pages for Mobile Connection API
    1. CFStateChangeEvent
    2. DataErrorEvent
    3. IccCardLockError
    4. IccCardLockErrorEvent
    5. MozCellBroadcastEvent
    6. MozEmergencyCbModeEvent
    7. MozIccManager
    8. MozMobileCFInfo
    9. MozMobileCellInfo
    10. MozMobileConnection
    11. MozMobileConnectionInfo
    12. MozMobileICCInfo
    13. MozMobileNetworkInfo
    14. MozOtaStatusEvent
    15. MozStkCommandEvent
    16. USSDReceivedEvent