---
title: ElectricVehicleChargingReason
framework: energykit
role: symbol
role_heading: Enumeration
path: energykit/electricvehiclechargingreason
---

# ElectricVehicleChargingReason

Information about a charging-state transition in an electric vehicle status event.

## Declaration

```swift
enum ElectricVehicleChargingReason
```

## Overview

Overview Use these reasons with ElectricVehicleStatusEvent to provide information about why a vehicle is actively charging, or why it remains idle when connected to a charger. This information relates to the ElectricVehicleLoadEvent, which focuses on energy consumption. Link the two by providing the load event’s session identifier in status events. For an example that demonstrates vehicle charging reasons, see Optimizing home electricity usage.

## Topics

### Active charging reasons

- [ElectricVehicleChargingReason.ActiveReason](energykit/electricvehiclechargingreason/activereason.md)

### Idle state reasons

- [ElectricVehicleChargingReason.IdleReason](energykit/electricvehiclechargingreason/idlereason.md)

## See Also

### Electric vehicle events

- [ElectricVehicleLoadEvent](energykit/electricvehicleloadevent.md)
- [ElectricVehicleStatusEvent](energykit/electricvehiclestatusevent.md)
