Initializes an intent to set the lock status of the named car.
- iOS 10.0+
- Mac Catalyst 13.0+
- watchOS 3.2+
- Xcode 8.3+
A Boolean value that indicates whether the car should be locked (
true) or unlocked (
A name that identifies the user's car. If
nil, the intent is instantiated with a
carproperty containing the string
A newly initialized
Normally, you do not create instances of this class yourself. Instead, Siri creates instances when the user asks it to lock or unlock the car. However, you can use this method during testing to create intent objects to validate your intent-handling code paths.