MozNetworkStats

This article is in need of a technical review.

Non-standard
This feature is not on a current W3C standards track, but it is supported on the Firefox OS platform. Although implementations may change in the future and it is not supported widely across browsers, it is suitable for use in code dedicated to Firefox OS apps.

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

Document Tags and Contributors

Contributors to this page: fscholz, MHasan, kscarfone, teoli, Jeremie
Last updated by: fscholz,