Battery class abstract Sensor Data Source

Battery status information sensor data.

Provides comprehensive battery information including charge level, state, health, voltage, temperature, and power connection status.

Inheritance

Constructors

Battery()

Properties

acquisitionTime DateTime
The time when this sensor data was acquired.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
health BatteryHealth
The overall health condition of the battery.
no setter
level int
The current battery charge level as a percentage.
no setter
lowBatteryNoticed bool
Whether a low battery warning has been detected.
no setter
pluggedType PluggedType
The type of power source the device is connected to.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state BatteryState
The current battery operational state.
no setter
temperature int
The current battery temperature.
no setter
type DataType
The type of this sensor data.
no setterinherited
voltage int
The current battery voltage in millivolts.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited