<!--
{
  "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/INGetCarLockStatusIntent/init(carName:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INGetCarLockStatusIntent(im)initWithCarName:"
  },
  "title" : "init(carName:)"
}
-->

# init(carName:)

Initializes an intent to get the lock status of the named car.

```
init(carName: INSpeakableString?)
```

## Parameters

`carName`

A name that identifies the user’s car. If `nil`, the intent is instantiated with a [`carName`](/documentation/Intents/INGetCarLockStatusIntent/carName) property containing the string `myCar`.

## Return Value

A newly initialized `INGetCarLockStatusIntent` object.

## Discussion

Normally, you don’t create instances of this class yourself. Instead, Siri creates instances when a user asks for the lock status of the car. However, you can use this method during testing to create intent objects to validate your intent-handling code paths.

---

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)