---
title: INSetCarLockStatusIntentResponse
framework: intents
role: symbol
role_heading: Class
path: intents/insetcarlockstatusintentresponse
---

# INSetCarLockStatusIntentResponse

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

## Declaration

```swift
class INSetCarLockStatusIntentResponse
```

## Overview

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:) and handle(intent:completion:) methods of your handler object. For more information about implementing your handler object, see INSetCarLockStatusIntentHandling.

## Topics

### Initializing the Response Object

- [init(code:userActivity:)](intents/insetcarlockstatusintentresponse/init(code:useractivity:).md)

### Getting the Response Code

- [code](intents/insetcarlockstatusintentresponse/code.md)
- [INSetCarLockStatusIntentResponseCode](intents/insetcarlockstatusintentresponsecode.md)

## Relationships

### Inherits From

- [INIntentResponse](intents/inintentresponse.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Set Car Lock Status

- [INSetCarLockStatusIntentHandling](intents/insetcarlockstatusintenthandling.md)
- [INSetCarLockStatusIntent](intents/insetcarlockstatusintent.md)
