# Google Maps FleetEngine V1 Client - Class BatteryInfo (0.5.3)

0.5.3 (latest) 0.5.2 0.4.1 0.3.1 0.2.0 0.1.6 Reference documentation and code samples for the Google Maps FleetEngine V1 Client class BatteryInfo.

Information about the device's battery.

Generated from protobuf message `maps.fleetengine.v1.BatteryInfo`

## Namespace

Google \\ Maps \\ FleetEngine \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ battery_status` | `int` Status of the battery, whether full or charging etc. |
| `↳ power_source` | `int` Status of battery power source. |
| `↳ battery_percentage` | `float` Current battery percentage \[0-100\]. |

### getBatteryStatus

Status of the battery, whether full or charging etc.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setBatteryStatus

Status of the battery, whether full or charging etc.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPowerSource

Status of battery power source.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setPowerSource

Status of battery power source.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getBatteryPercentage

Current battery percentage \[0-100\].

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setBatteryPercentage

Current battery percentage \[0-100\].

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `float` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |