CSBatterySensor Class Reference
| Inherits from | CSSensor : NSObject |
|---|---|
| Declared in | CSBatterySensor.h |
Overview
Sensor that stores the battery information. This sensor is event based, it stores a new data with each 1% change in the value. When the state is charged, it stores new data regularly.
JSON output value format
{
"level": FLOAT;
"status": STRING; //"Unknown", "Discharging", "Charging", "Full"
}
– commitBatteryState:
Stores the battery state from a recevied notification
- (void)commitBatteryState:(NSNotification *)notificationParameters
notification |
Notification object that contains the new battery information. |
|---|
Declared In
CSBatterySensor.h