Contents

init(carName:signals:)

Initializes an intent to trigger audio or visual signals from the car.

Declaration

init(carName: INSpeakableString?, signals: INCarSignalOptions = [])

Parameters

  • carName:

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

  • signals:

    The set of signals to be activated. For a list of valid signals, see Incarsignaloptions.

Return Value

A newly initialized INActivateCarSignalIntent object.

Discussion

Normally, you do not create instances of this class yourself. Instead, Siri creates instances when the user asks for an audible or visual signal from the car. However, you can use this method during testing to create intent objects to validate your intent-handling code paths.