Skip to main content

DeviceBatteryInfo

Namespace: Wisej.Hybrid

Assembly: Wisej.Hybrid

Provides detailed information about the device's battery.

public class DeviceBatteryInfo : DeviceInfoBase

Access this class through the Info singleton.

Constructors

Instance memberDeviceBatteryInfo()

Initializes a new instance of the DeviceBatteryInfo class.

Properties

Instance memberChargeLevel

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

Instance memberEnergySaverStatus

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

Instance memberPowerSource

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

Instance memberState

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

Methods

Instance memberOnWebUpdate(info)

Updates the info configuration.

ParameterTypeDescription
infoObjectThe info configuration.

Events

Instance memberBatteryInfoChanged

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