<!--
{
  "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/INListCarsIntentResponse",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INListCarsIntentResponse"
  },
  "title" : "INListCarsIntentResponse"
}
-->

# INListCarsIntentResponse

Your app’s response to a request to list the user’s electric vehicles.

```
class INListCarsIntentResponse
```

## Overview

Use an `INListCarsIntentResponse` to specify the result of a request from Maps for a list of the user’s electric vehicles. You create instances of this class when confirming or handling a List Cars intent. Use this object to confirm the request is valid and return a list of the user’s cars, or to report any errors that occur. Each entry in the [`cars`](/documentation/Intents/INListCarsIntentResponse/cars) array provides information about one of the user’s electric vehicles, including its unique car identifier and model information, such as name and year.

When creating a response that requires the system to launch your host app, always provide a relevant <doc://com.apple.documentation/documentation/Foundation/NSUserActivity> object. This ensures your host app has the context it needs to handle the operation.

You create an `INListCarsIntentResponse` in the [`confirm(intent:completion:)`](/documentation/Intents/INListCarsIntentHandling/confirm(intent:completion:)) and [`handle(intent:completion:)`](/documentation/Intents/INListCarsIntentHandling/handle(intent:completion:)) methods of your handler object. For more information about implementing your handler object, see [`INListCarsIntentHandling`](/documentation/Intents/INListCarsIntentHandling).

## Topics

### Creating a Response

[`init(code: INListCarsIntentResponseCode, userActivity: NSUserActivity?)`](/documentation/Intents/INListCarsIntentResponse/init(code:userActivity:))

Creates a response object with the specified code and user activity.

### Getting the Response Code

[`var code: INListCarsIntentResponseCode`](/documentation/Intents/INListCarsIntentResponse/code)

The code that indicates success or failure when confirming or handling the intent.

[`enum INListCarsIntentResponseCode`](/documentation/Intents/INListCarsIntentResponseCode)

Constants that represent the status of a response.

### Providing a List of Cars

[`var cars: [INCar]?`](/documentation/Intents/INListCarsIntentResponse/cars)

An array of the user’s electric vehicles.

[`class INCar`](/documentation/Intents/INCar)

A specific electric vehicle that Maps uses during route planning and navigation.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Equatable`](/documentation/Swift/Equatable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

### Inherits From

[`INIntentResponse`](/documentation/Intents/INIntentResponse)

---

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)