<!--
{
  "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/INPlayMediaMediaItemResolutionResult/successes(with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INPlayMediaMediaItemResolutionResult(cm)successesWithResolvedMediaItems:"
  },
  "title" : "successes(with:)"
}
-->

# successes(with:)

Creates an array of resolution results based on a set of media items you provide.

```
class func successes(with resolvedMediaItems: [INMediaItem]) -> [INPlayMediaMediaItemResolutionResult]
```

## Parameters

`resolvedMediaItems`

The items that are relevant for the user’s intent.

## Return Value

An array of new [`INPlayMediaMediaItemResolutionResult`](/documentation/Intents/INPlayMediaMediaItemResolutionResult) objects.

## Discussion

When the system calls [`resolveMediaItems(for:with:)`](/documentation/Intents/INPlayMediaIntentHandling/resolveMediaItems(for:with:)), if your app can identify relevant media for the intent, use this method to create results for each of those media items. If your app isn’t completely sure of the match, provide a few items with the best match first. The system can start playing the first item and offer the alternatives in case the user wants to play one of them instead.

---

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)