---
title: "disambiguation(with:)"
framework: intents
role: symbol
role_heading: Type Method
path: "intents/inmediaitemresolutionresult/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 mediaItemsToDisambiguate: [INMediaItem]) -> Self
```

## Parameters

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

## Return Value

Return Value A new INMediaItemResolutionResult object.

## Discussion

Discussion Use this method to create a result object when more than one media item matches the given information and you can’t definitively pick one. Ask the user to select from among the notes that you specify. For each INMediaItem object that you provide, include enough information to be able to locate the media item later. When the user selects one of the destinations, SiriKit puts the details from your INMediaItem object into the intent and asks you to resolve the media item again.

## See Also

### Creating a Resolution Result Object

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