<!--
{
  "availability" : [
    "iOS: 10.3.0 -",
    "iPadOS: 10.3.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INSetCarLockStatusIntentResponse",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INSetCarLockStatusIntentResponse"
  },
  "title" : "INSetCarLockStatusIntentResponse"
}
-->

# INSetCarLockStatusIntentResponse

Your app’s response to a request to lock or unlock the car.

```
class INSetCarLockStatusIntentResponse
```

## Overview

Use an `INSetCarLockStatusIntentResponse` object to specify the result of a request to lock or unlock the user’s car. You create instances of this class when confirming or handling a set car lock intent. Use this object to confirm that the request is valid and communicate whether the car was successfully locked or unlocked, or to report any errors that occur.

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

## Topics

### Initializing the Response Object

[`init(code: INSetCarLockStatusIntentResponseCode, userActivity: NSUserActivity?)`](/documentation/Intents/INSetCarLockStatusIntentResponse/init(code:userActivity:))

Initializes the response object with the specified code and user activity.

### Getting the Response Code

[`var code: INSetCarLockStatusIntentResponseCode`](/documentation/Intents/INSetCarLockStatusIntentResponse/code)

The code indicating success or failure when confirming or handling an intent.

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

Constants indicating the status of the response.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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

### 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)