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

# successes(with:)

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

## Declaration

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

## Parameters

- `resolvedMediaItems`: The items that are relevant for the user’s intent.

## Return Value

Return Value An array of new INPlayMediaMediaItemResolutionResult objects.

## Discussion

Discussion When the system calls 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.

## See Also

### Providing Successful Results

- [init(mediaItemResolutionResult:)](intents/inplaymediamediaitemresolutionresult/init(mediaitemresolutionresult:).md)
