Contents

init(destinationType:contacts:)

Creates an intent with the specified information.

Declaration

init(destinationType: INCallDestinationType, contacts: [INPerson]?)

Parameters

  • destinationType:

    The type of call to place.

  • contacts:

    An array of Inperson objects representing the users to call.

Return Value

An initialized intent or nil if the object could not be created.

Discussion

Normally, you don’t create instances of this class yourself. Instead, Siri creates instances when the user asks to place a call to another user. However, you can use this method during testing to create intent objects in order to validate your intent handling code paths.

See Also

Creating the Intent Object