resolveDestinationType(for:with:)
Resolves the destination of the call.
Declaration
optional func resolveDestinationType(for intent: INStartAudioCallIntent, with completion: @escaping @Sendable (INCallDestinationTypeResolutionResult) -> Void)optional func resolveDestinationType(for intent: INStartAudioCallIntent) async -> INCallDestinationTypeResolutionResultParameters
- intent:
The intent object containing details about the user’s request. Use this object to get the initial information, if any, provided by the user.
- completion:
The handler block to execute with the resolution. You must execute this handler at some point during your implementation of this method. This handler has no return value and takes the following parameter:
- resolutionResult
The object containing the details of your proposed resolution. For a successful resolution, create a resolution result with the requested destination type.
Discussion
Use this method to verify that you can initiate the specified type of call. Return a successful resolution if you can place the specified type of call. If you don’t support the specified call type, return a not required or successful resolution and report the failure in your confirm(intent:completion:) method.