init(carName:)
Initializes an intent to get the lock status of the named car.
Declaration
init(carName: INSpeakableString?)Parameters
- carName:
A name that identifies the user’s car. If
nil, the intent is instantiated with a Carname property containing the stringmyCar.
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.