<!--
{
  "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/INGetCarLockStatusIntentResponse",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INGetCarLockStatusIntentResponse"
  },
  "title" : "INGetCarLockStatusIntentResponse"
}
-->

# INGetCarLockStatusIntentResponse

Your app’s response to a request to get the car’s lock status.

```
class INGetCarLockStatusIntentResponse
```

## Overview

Use an `INGetCarLockStatusIntentResponse` object to specify the result of a request for a car’s current lock status. You create instances of this class when confirming or handling a get lock status intent. Use this object to confirm that the request is valid and communicate whether the app retrieved the lock status, or to report any errors that occur.

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

## Topics

### Initializing the Response Object

[`init(code: INGetCarLockStatusIntentResponseCode, userActivity: NSUserActivity?)`](/documentation/Intents/INGetCarLockStatusIntentResponse/init(code:userActivity:))

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

### Getting the Response Code

[`var code: INGetCarLockStatusIntentResponseCode`](/documentation/Intents/INGetCarLockStatusIntentResponse/code)

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

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

Constants indicating the status of the response.

### Providing the Locked Status

[`var locked: Bool?`](/documentation/Intents/INGetCarLockStatusIntentResponse/locked-357ju)

A Boolean value indicating the status of the car’s locks.

[`@property (nonatomic, copy, readwrite, nullable) NSNumber * locked;`](/documentation/Intents/INGetCarLockStatusIntentResponse/locked-1eacd)

A Boolean value indicating the status of the car’s locks.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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

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