Version: Smart Feature Phone 2.5
MozNetworkStatsManager.getAllAlarms()
#
DescriptionThe getAllAlarms method obtains all alarms for those networks returned by MozNetworkStatsManager.getAvailableNetworks. If a network is provided, it only retrieves the alarms for that network.
#
Syntax#
Parametersread-only
#
network The origin of the data. It can specify wifi, mobile, or null. If null, data measurement from both origins are merged. To know in advance which kind of origin is available, the MozNetworkStatsManager.getAvailableNetworks method returns an Array of interfaces.
#
ReturnAn Alarm object with the same fields as that in the system message: alarmId, network, threshold, and data.
#
ExceptionsInvalidNetwork
The network must be in the return of MozNetworkStatsManager.getAvailableNetworks
.