DeviceBatteryInfo
Namespace: Wisej.Hybrid
Assembly: Wisej.Hybrid
Provides detailed information about the device's battery.
- C#
- VB.NET
public class DeviceBatteryInfo : DeviceInfoBase
Public Class DeviceBatteryInfo
Inherits DeviceInfoBase
Access this class through the Info singleton.
Constructors
DeviceBatteryInfo()
Initializes a new instance of the DeviceBatteryInfo class.
Properties
ChargeLevel
Double: Gets the current charge level of the battery as a percentage.
EnergySaverStatus
EnergySaverStatus: Gets the status of the energy saver feature on the device.
PowerSource
BatteryPowerSource: Gets how the device and battery are currently being powered or charged.
State
BatteryState: Gets the current state of the battery, indicating if it is charging or full.
Methods
OnWebUpdate(info)
Updates the info configuration.
| Parameter | Type | Description |
|---|---|---|
| info | Object | The info configuration. |
Events
BatteryInfoChanged
EventHandler Occurs when battery properties change, such as state or charge level.