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

# successes(with:)

Creates an array of results that contains the media items that match the user’s request.

## Declaration

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

## Parameters

- `resolvedMediaItems`: An array of doc://com.apple.sirikit/documentation/Intents/INMediaItem objects that resolve the user’s request. These values may be different than the one specified in the intent object.

## Return Value

Return Value The array of INMediaItemResolutionResult objects.

## Discussion

Discussion Use this method to create results when your app successfully identifies multiple media items to fulfill the same intent. After the first item in the list, any media item suggestions display as alternatives, but only on iOS. For cases where there are no potential alternatives, use success(with:).

## See Also

### Creating a Resolution Result Object

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