Instance Method

initWithContacts:

Initializes the start audio call intent object with the specified contacts.

Declaration

- (instancetype)initWithContacts:(NSArray<INPerson *> *)contacts;

Parameters

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 do not 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