• 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. MozNetworkStats

MozNetworkStats

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

This API is available on Firefox OS for internal applications only.

Summary

The MozNetworkStats object gives access to statistics about the data usage for a given network.

MozNetworkStats objects are obtained through a call to the MozNetworkStatsManager.getNetworkStats() method.

Properties

MozNetworkStats.connectionType Read only
A string representing the connection type or null.
MozNetworkStats.data Read only
An array of MozNetworkStatsData objects.
MozNetworkStats.start Read only
A date representing the time of the first MozNetworkStatsData object.
MozNetworkStats.end Read only
A date representing the time of the last MozNetworkStatsData object.

Methods

None.

Specification

Not part of any specification.

See also

  • Network Stats API
  • MozNetworkStatsManager
  • MozNetworkStatsData
  • window.navigator.mozNetworkStats

Document Tags and Contributors

Tags: 
  • API
  • B2G
  • Firefox OS
  • Network Stats
  • Non-standard
  • Reference
  • Référence
 Contributors to this page: chrisdavidmills, fscholz, MHasan, kscarfone, teoli, Jeremie
 Last updated by: chrisdavidmills, Feb 27, 2017, 2:08:45 AM
See also
  1. Network Stats API
  2. Archive
  3. Related pages for Network Stats API
    1. MozNetworkStats
    2. MozNetworkStatsData
    3. MozNetworkStatsManager