Initializer

init(audioRoute:destinationType:contacts:recordTypeForRedialing:callCapability:)

Creates a start call intent object with the specified parameters.

Declaration

init(audioRoute: INCallAudioRoute, destinationType: INCallDestinationType, contacts: [INPerson]?, recordTypeForRedialing: INCallRecordType, callCapability: INCallCapability)

Parameters

audioRoute

The audio route for the call.

destinationType

The target type of the call to place.

contacts

An array of INPerson objects representing the users to call.

recordTypeForRedialing

The type of record that should be referenced for redialing a past call.

callCapability

The type of call to place.

Return Value

An initialized intent or nil if it couldn't create the object.

Discussion

Typically, 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.