• Skip to main content
  • Select language
  • Skip to search
mozilla
Mozilla Developer Network
  • Sign in
    • Persona
    • GitHub
  • Web Platform
    Technologies
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • APIs / DOM
    • Apps
    • MathML
    References & Guides
    • Learn the Web
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • ...more docs
  • Mozilla Docs
    • Add-ons
    • Firefox
    • Firefox Marketplace
    • Firefox OS
    • Persona
  • Developer Tools
  • Feedback
    • Get Firefox help
    • Get web development help
    • Join the MDN community
    • Report a content problem
    • Report a bug
  •  
B2G OS
    • Français
    • Add a translation
  • Edit
  • Advanced
    • History
    • Print this article
  1. MDN
  2. Mozilla
  3. B2G OS
  4. Firefox OS APIs
  5. MozMobileConnectionInfo
Your Search Results

    MozMobileConnectionInfo

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

    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 overviewEdit

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

    PropertiesEdit

    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.

    MethodsEdit

    None.

    SpecificationEdit

    Not part of any specification.

    See alsoEdit

    • navigator.mozMobileConnection
    • MozMobileNetworkInfo
    • MozMobileCellInfo
    Share:
    • Twitter
    • Facebook
    • Google+

    Document Tags and Contributors

    Tags: 
    • API
    • B2G
    • Firefox OS
    • Non-standard
    • Reference
    • Référence
     Contributors to this page: chrisdavidmills, teoli, MHasan, kscarfone, justinpotts, Sheppy, Jeremie
     Last updated by: chrisdavidmills, Feb 11, 2016, 5:31:21 AM
    See also
    1. Mobile Connection API
    2. MozMobileConnectionInfo
    3. Properties
      1. cell
      2. connected
      3. emergencyCallsOnly
      4. lastKnownMcc
      5. network
      6. relSignalStrength
      7. roaming
      8. signalStrength
      9. state
      10. type
    4. Events
      1. icccardlockerror
      2. cardstatechange
    5. 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. MozMobileICCInfo
      12. MozMobileNetworkInfo
      13. MozOtaStatusEvent
      14. MozStkCommandEvent
      15. Navigator.mozMobileConnections
      16. USSDReceivedEvent

    © 2005-2016 Mozilla Developer Network and individual contributors.

    Content is available under these licenses.

    • About MDN
    • Terms
    • Privacy
    • Cookies
    • Contribute to the code