Contents

resolveDestinationType(for:with:)

Resolves the destination of the call.

Declaration

optional func resolveDestinationType(for intent: INStartCallIntent, with completion: @escaping  @Sendable (INCallDestinationTypeResolutionResult) -> Void)
optional func resolveDestinationType(for intent: INStartCallIntent) async -> INCallDestinationTypeResolutionResult

Parameters

  • intent:

    The intent object that contains 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 while implementing this method. This handler has no return value and takes the following parameter:

    resolutionResult

    The object that contains the details of your proposed resolution. For a successful resolution, create a resolution result with the requested destination type.

Discussion

This method verifies that you can initiate the specified call type. Return a successful resolution if you can place the specified call type. If you don’t support the specified call type, return a not required resolution and report the failure in your confirm(intent:completion:) method.

See Also

Resolving the Intent Parameters