---
title: "disambiguation(with:)"
framework: intents
role: symbol
role_heading: Type Method
path: "intents/intaskresolutionresult/disambiguation(with:)"
---

# disambiguation(with:)

Creates an object whose resolution requires the user to select from among the specified objects.

## Declaration

```swift
class func disambiguation(with tasksToDisambiguate: [INTask]) -> Self
```

## Parameters

- `tasksToDisambiguate`: An array of doc://com.apple.sirikit/documentation/Intents/INTask objects for the user to choose from.

## Return Value

Return Value A new INTaskResolutionResult object.

## Discussion

Discussion Use this method to create a result object when more than one task matches the given information and you cannot pick one definitively. Ask the user to select from among the tasks that you specify. For each INTask object that you provide, include enough information to be able to locate that task again later. When the user selects one of the tasks, SiriKit puts the details from your INTask object into the intent and asks you to resolve the task again. Therefore, you might assign a unique value to the identifier property of the task so that you can perform a fast lookup of the selected task during the second resolution pass.

## See Also

### Creating a Resolution Result Object

- [success(with:)](intents/intaskresolutionresult/success(with:).md)
- [confirmationRequired(with:)](intents/intaskresolutionresult/confirmationrequired(with:).md)
