Home > @magiclane/maps-sdk > Battery
Battery class
Battery status information sensor data.
Provides comprehensive battery information including charge level, state, health, voltage, temperature, and power connection status.
Sensor Data Source
Signature:
export declare class Battery extends GemAutoreleaseObject implements SenseData Extends: GemAutoreleaseObject
Implements: SenseData
Remarks
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the Battery class.
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
| Date | Acquisition time | |
| The overall health condition of the battery. | ||
| number | The current battery charge level as a percentage. | |
| boolean | Whether a low battery warning has been detected. | |
| The type of power source the device is connected to. | ||
| The current battery operational state. | ||
| number | The current battery temperature. | |
| Get data type | ||
| number | The current battery voltage in millivolts. |
Methods
Method | Modifiers | Description |
|---|---|---|
Serialize to JSON |