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

# handle(intent:completion:)

Handles locking or unlocking the car.

## Declaration

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

```swift
func handle(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 Your implementation of this method must lock or unlock the user’s car. If you are unable to lock or unlock the car, return a response object whose result code indicates the reason for the failure.
