---
title: "confirm(intent:completion:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/inlistcarsintenthandling/confirm(intent:completion:)"
---

# confirm(intent:completion:)

Confirms that you can provide a list of the user’s electric vehicles.

## Declaration

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

```swift
optional func confirm(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 doc://com.apple.sirikit/documentation/Intents/INListCarsIntentResponse that contains the appropriate status code.

## Discussion

Discussion Implement this method to confirm that you can provide a list of the user’s electric vehicles. Perform any processing that your app requires to retrieve a list of the user’s electric vehicles, and then create a response object with a status code that indicates your app’s readiness to handle the intent. You must then call the completion block and pass the response.
