Skip to main content

DeviceBattery

Namespace: Wisej.Hybrid

Assembly: Wisej.Hybrid (4.1.0.0)

Provides detailed information about the device's battery.

public class DeviceBattery : DeviceInfoBase

Access this class through the Info singleton.

Properties​

Instance member ChargeLevel​

Double: Gets the current charge level of the battery as a percentage.

Instance member EnergySaverStatus​

EnergySaverStatus: Gets the status of the energy saver feature on the device.

Instance member PowerSource​

BatteryPowerSource: Gets how the device and battery are currently being powered or charged.

Instance member State​

BatteryState: Gets the current state of the battery, indicating if it is charging or full.

Methods​

Instance member OnWebUpdate(info)​

Updates the info configuration.

ParameterTypeDescription
infoObjectThe info configuration.

Events​

Instance member BatteryInfoChanged​

EventHandler Occurs when battery properties change, such as state or charge level.