DeviceBattery
Namespace: Wisej.Hybrid
Assembly: Wisej.Hybrid (4.1.0.0)
Provides detailed information about the device's battery.
- C#
- VB.NET
public class DeviceBattery : DeviceInfoBase
Public Class DeviceBattery
Inherits DeviceInfoBase
Access this class through the Info singleton.
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.