<!--
{
  "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/INAddMediaIntentHandling/resolveMediaItems(for:with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(pl)INAddMediaIntentHandling(im)resolveMediaItemsForAddMedia:withCompletion:"
  },
  "title" : "resolveMediaItems(for:with:)"
}
-->

# resolveMediaItems(for:with:)

Resolves the media items to add.

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

## Parameters

`intent`

The intent object that contain 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 to add. 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 you are adding the correct media items.

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)