<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INSearchForMediaIntentHandling/resolveMediaItems(for:with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(pl)INSearchForMediaIntentHandling(im)resolveMediaItemsForSearchForMedia:withCompletion:"
  },
  "title" : "resolveMediaItems(for:with:)"
}
-->

# resolveMediaItems(for:with:)

Resolves the media items for which to search.

```
optional func resolveMediaItems(for intent: INSearchForMediaIntent, with completion: @escaping @Sendable ([INSearchForMediaMediaItemResolutionResult]) -> Void)
```

## 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 block to execute with the resolution. You must execute this block while implementing this method. This block has no return value and takes the following parameter:

- resolutionResult: The object that contains the details of your proposed resolution.

## Discussion

Implement this method to resolve the media items for which to search. Always strive toward a successful resolution to the specific media items, but feel free to ask for confirmation of the selected media items if there’s some uncertainty about whether your app found the correct media.

If you find multiple media items matching the same name, consider asking the user to disambiguate from among the most likely candidates.

> Note:
> Don’t ask users for confirmation or disambiguation too often as users may become frustrated and exit Siri.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)