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

# confirm(intent:completion:)

Confirms that your app can lock or unlock the car.

## Declaration

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

```swift
optional func confirm(intent: INSetCarLockStatusIntent) async -> INSetCarLockStatusIntentResponse
```

## Parameters

- `intent`: An intent object that contains the full details of the user’s request. The information in this object has already been resolved by your handler object.
- `completion`: The handler block to execute with your response. You must execute this handler at some point during your implementation of this method. This handler has no return value and takes the following parameter:

## Discussion

Discussion Implement this method to validate that your app can lock or unlock the car given the data in the provided intent. For example, you should validate that the app can currently access the car. At some point in your implementation, execute the provided completion block with a response object indicating your app’s readiness to lock or unlock the car.
