Initializer

init(locked:carName:)

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

Declaration

@nonobjc convenience init(locked: Bool?, carName: INSpeakableString?)

Parameters

locked

A Boolean value that indicates whether the car should be locked (true) or unlocked (false).

carName

A name that identifies the user's car. If nil, the intent is instantiated with a carName property containing the string myCar.

Return Value

A newly initialized INSetCarLockStatusIntent object.

Discussion

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.