> For the complete documentation index, see [llms.txt](https://docs.wisej.com/hybrid/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wisej.com/hybrid/start/api/hardware/wisej.hybrid.devicebatteryinfo.md).

# DeviceBatteryInfo

Namespace: **Wisej.Hybrid**

Assembly: **Wisej.Hybrid** (3.5.0.0)

* [DeviceInfoBase](/hybrid/start/api/general/wisej.hybrid.core.deviceinfobase.md)
  * [DeviceBatteryInfo](/hybrid/start/api/hardware/wisej.hybrid.devicebatteryinfo.md)

Provides detailed information about the device's battery.

{% tabs %}
{% tab title="C#" %}

```csharp
public class DeviceBatteryInfo : DeviceInfoBase
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class DeviceBatteryInfo
    Inherits DeviceInfoBase
```

{% endtab %}
{% endtabs %}

Access this class through the [Info](/hybrid/start/api/general/wisej.hybrid.device.md#info) singleton.

## Constructors

### ![](/files/CCV9PPenlC1YZvNh1I6R)DeviceBatteryInfo()

Initializes a new instance of the [DeviceBatteryInfo](/hybrid/start/api/hardware/wisej.hybrid.devicebatteryinfo.md) class.

## Properties

### ![](/files/CCV9PPenlC1YZvNh1I6R)ChargeLevel

[Double](https://docs.microsoft.com/dotnet/api/system.double): Gets the current charge level of the battery as a percentage.

### ![](/files/CCV9PPenlC1YZvNh1I6R)EnergySaverStatus

[EnergySaverStatus](/hybrid/start/api/hardware/wisej.hybrid.shared.battery.energysaverstatus.md): Gets the status of the energy saver feature on the device.

### ![](/files/CCV9PPenlC1YZvNh1I6R)PowerSource

[BatteryPowerSource](/hybrid/start/api/hardware/wisej.hybrid.shared.battery.batterypowersource.md): Gets how the device and battery are currently being powered or charged.

### ![](/files/CCV9PPenlC1YZvNh1I6R)State

[BatteryState](/hybrid/start/api/hardware/wisej.hybrid.shared.battery.batterystate.md): Gets the current state of the battery, indicating if it is charging or full.

## Methods

### ![](/files/CCV9PPenlC1YZvNh1I6R)OnWebUpdate(info)

Updates the info configuration.

| Parameter | Type                                                          | Description             |
| --------- | ------------------------------------------------------------- | ----------------------- |
| **info**  | [Object](https://docs.microsoft.com/dotnet/api/system.object) | The info configuration. |

## Events

### ![](/files/CCV9PPenlC1YZvNh1I6R)BatteryInfoChanged

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Occurs when battery properties change, such as state or charge level.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wisej.com/hybrid/start/api/hardware/wisej.hybrid.devicebatteryinfo.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
