---
title: "init(mediaItemResolutionResult:)"
framework: intents
role: symbol
role_heading: Initializer
path: "intents/inupdatemediaaffinitymediaitemresolutionresult/init(mediaitemresolutionresult:)"
---

# init(mediaItemResolutionResult:)

Creates a result that involves successfully updating the user’s affinity for a media item.

## Declaration

```swift
init(mediaItemResolutionResult: INMediaItemResolutionResult)
```

## Parameters

- `mediaItemResolutionResult`: The value that resolves the requested parameter of the intent. This value may be different than the one specified in the intent object.

## Return Value

Return Value A new INUpdateMediaAffinityMediaItemResolutionResult object.

## Discussion

Discussion Use this method to create a result object when you’re able to successfully update the user’s affinity for a media item.

## See Also

### Providing Successful Results

- [successes(with:)](intents/inupdatemediaaffinitymediaitemresolutionresult/successes(with:).md)
