Version: Smart Feature Phone 2.5

MozNetworkStatsManager

Description#

The MozNetworkStatsManager interface provides methods and properties to monitor data usage.

Properties#

  • MozNetworkStatsManager.maxStorageAge read-only
    A number representing the time in milliseconds recorded by the API until present time for each type of connection. All samples older than maxStorageAge from now are deleted.

  • MozNetworkStatsManager.sampleRate read-only
    A number representing the minimum time in milliseconds between samples stored in the database.

Methods#

Constants#

  • MozNetworkStatsManager.WIFI - Returns 0, identifying Wifi

  • MozNetworkStatsManager.MOBILE - Returns 1, identifying Mobile