---
title: INSetCarLockStatusIntent
framework: intents
role: symbol
role_heading: Class
path: intents/insetcarlockstatusintent
---

# INSetCarLockStatusIntent

A request to lock or unlock the user’s car.

## Declaration

```swift
class INSetCarLockStatusIntent
```

## Overview

Overview When the user asks to lock or unlock the car, Siri creates an INSetCarLockStatusIntent object. This intent object can contain the name of the user’s car and the requested lock status. Use this object to lock or unlock the car. To handle this intent, the handler object in your Intents extension must adopt the INSetCarLockStatusIntentHandling protocol. Your handler should confirm the request and create an INSetCarLockStatusIntentResponse object with the results. Additional Intent Attributes The following table lists additional attributes of this intent object:  |   |   |  Example Phrases Users can ask Siri to lock or unlock their car in a variety of ways. The table below provides a few sample phrases in different languages. You can use these phrases during testing to trigger your intents. This list isn’t exhaustive, and Siri may recognize many other phrases.  |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |  Unlike other SiriKit intents, these phrases do not always require your app’s name. Siri infers the app name when possible (for example, based on unique user vocabulary registered by your app). If necessary, Siri verifies the app’s name before launching your extension.

## Topics

### Initializing the Intent Object

- [init(locked:carName:)](intents/insetcarlockstatusintent/init(locked:carname:).md)

### Getting the Car Name

- [carName](intents/insetcarlockstatusintent/carname.md)

### Getting the Locked Status

- [locked](intents/insetcarlockstatusintent/locked-9h0kx.md)

## Relationships

### Inherits From

- [INIntent](intents/inintent.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [INIntentSetImageKeyPath](intents/inintentsetimagekeypath.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)
- [INSetCarLockStatusIntentResponse](intents/insetcarlockstatusintentresponse.md)
