DeviceBatteryInfo

Wisej.Hybrid.DeviceBatteryInfo

Namespace: Wisej.Hybrid

Assembly: Wisej.Hybrid (3.5.0.0)

Provides detailed information about the device's battery.

public class DeviceBatteryInfo : 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

The info configuration.

Events

BatteryInfoChanged

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

Last updated