# DeviceBatteryInfo

Namespace: **Wisej.Hybrid**

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

* [DeviceInfoBase](https://docs.wisej.com/hybrid/start/api/general/wisej.hybrid.core.deviceinfobase)
  * [DeviceBatteryInfo](https://docs.wisej.com/hybrid/start/api/hardware/wisej.hybrid.devicebatteryinfo)

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](https://docs.wisej.com/hybrid/start/general/wisej.hybrid.device#info) singleton.

## Constructors

### ![](https://1168517704-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKLgWHTlbcMvpwVT7mLBW%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)DeviceBatteryInfo()

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

## Properties

### ![](https://1168517704-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKLgWHTlbcMvpwVT7mLBW%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)ChargeLevel

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

### ![](https://1168517704-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKLgWHTlbcMvpwVT7mLBW%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)EnergySaverStatus

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

### ![](https://1168517704-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKLgWHTlbcMvpwVT7mLBW%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)PowerSource

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

### ![](https://1168517704-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKLgWHTlbcMvpwVT7mLBW%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)State

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

## Methods

### ![](https://1168517704-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKLgWHTlbcMvpwVT7mLBW%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)OnWebUpdate(info)

Updates the info configuration.

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

## Events

### ![](https://1168517704-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKLgWHTlbcMvpwVT7mLBW%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)BatteryInfoChanged

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