---
title: "resolveLocked(for:with:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/insetcarlockstatusintenthandling/resolvelocked(for:with:)"
---

# resolveLocked(for:with:)

Resolves the requested lock status (locked or unlocked).

## Declaration

```swift
optional func resolveLocked(for intent: INSetCarLockStatusIntent, with completion: @escaping @Sendable (INBooleanResolutionResult) -> Void)
```

```swift
optional func resolveLocked(for intent: INSetCarLockStatusIntent) async -> INBooleanResolutionResult
```

## Parameters

- `intent`: The intent object containing details about the user’s request. Use this object to get the initial information, if any, provided by the user.
- `completion`: The block to execute with the resolution. You must execute this block at some point during your implementation of this method. This block has no return value and takes the following parameter:

## Discussion

Discussion Implement this method to verify the requested lock status. This status is a Boolean value: true indicates that the car should be locked, false indicates it should be unlocked.

## See Also

### Resolving the Intent Parameters

- [resolveCarName(for:with:)](intents/insetcarlockstatusintenthandling/resolvecarname(for:with:).md)
