Class: Toybox.System.Stats
- Inherits:
-
Toybox.Lang.Object
Overview
Represents various statistics available on a device, such as the battery charge and memory use.
See Also:
Instance Member Summary collapse
-
battery as Lang.Float
The remaining battery life as a percentage.
-
batteryInDays as Lang.Float
The remaining battery life in days.
-
charging as Lang.Boolean
Battery charging indicator.
-
freeMemory as Lang.Number
The current free memory in bytes.
-
solarIntensity as Lang.Number or Null
A Toybox::Lang::Number value from 0-100 that describes the solar sensor's charge efficiency, if available.
-
totalMemory as Lang.Number
The total available memory in bytes.
-
usedMemory as Lang.Number
The memory used by the application in bytes.
Instance Attribute Details
var battery as Lang.Float
The remaining battery life as a percentage.
var batteryInDays as Lang.Float
The remaining battery life in days.
var charging as Lang.Boolean
Battery charging indicator. This will be set to true
if the device
is connected to the charging cradle or cable whether or not the
device is fully charged.
var freeMemory as Lang.Number
The current free memory in bytes.
var solarIntensity as Lang.Number or Null
A Toybox::Lang::Number value from 0-100 that describes the solar
sensor's charge efficiency, if available. Will be set to null
if
the device doesn't support solar or a negative
number when the
device is not currently charging.
var totalMemory as Lang.Number
The total available memory in bytes.
var usedMemory as Lang.Number
The memory used by the application in bytes.