HardwareDeviceManager
A DeviceManager for a hardware device with a battery.
Adds the battery level (batteryLevel) and battery events (batteryEvents).
- Inheritance
-
- Object
- DeviceManager<
TDeviceConfiguration, TRegistration> - HardwareDeviceManager
- Implementers
Constructors
HardwareDeviceManager
- String deviceType, {
- TDeviceConfiguration? configuration,
Properties
batteryEvents
The battery level (0-100) of this hardware device, each time it changes.
Empty by default.
batteryLevel
The runtime battery level of this hardware device in percent (0-100). Returns null if unknown.