<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INListCarsIntentHandling/handle(intent:completion:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(pl)INListCarsIntentHandling(im)handleListCars:completion:"
  },
  "title" : "handle(intent:completion:)"
}
-->

# handle(intent:completion:)

Provides a list of the user’s electric vehicles.

```
func handle(intent: INListCarsIntent, completion: @escaping @Sendable (INListCarsIntentResponse) -> Void)
```

```
func handle(intent: INListCarsIntent) async -> INListCarsIntentResponse
```

## Parameters

`intent`

The intent object that represents the request.

`completion`

The block you call with your response. You must call this block within your implementation of this method and pass an instance of [`INListCarsIntentResponse`](/documentation/Intents/INListCarsIntentResponse) that contains a status code, and a list of the user’s electric vehicles, if available.

## Discussion

Retrieve a list of the user’s electric vehicles and create an instance of [`INCar`](/documentation/Intents/INCar) for each, setting [`carIdentifier`](/documentation/Intents/INCar/carIdentifier) to a unique identifier that represents that vehicle. The identifier matches the vehicle to future [`INGetCarPowerLevelStatusIntent`](/documentation/Intents/INGetCarPowerLevelStatusIntent) requests. Do not use the vehicle’s VIN, or equivalent, as the identifier.

Before returning from this method, create a response with the appropriate status code and, if you can retrieve a list of the user’s electric vehicles, set the [`cars`](/documentation/Intents/INListCarsIntentResponse/cars) property to the array of `INCar` objects. Then call the completion block and pass the response.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)