resolveCallCapability(for:with:)
Resolves the type of call to start.
Declaration
optional func resolveCallCapability(for intent: INStartCallIntent, with completion: @escaping @Sendable (INStartCallCallCapabilityResolutionResult) -> Void)optional func resolveCallCapability(for intent: INStartCallIntent) async -> INStartCallCallCapabilityResolutionResultParameters
- 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 containing the details of your proposed resolution. For a successful resolution, create a resolution result that contains the types of calls you are able to start.
Discussion
This method lets SiriKit know which types of calls you can start. Your implementation should provide a successful resolution for the call types you support and an unsupported resolution for any call types you don’t support.