---
title: INUpdateMediaAffinityIntentHandling
framework: intents
role: symbol
role_heading: Protocol
path: intents/inupdatemediaaffinityintenthandling
---

# INUpdateMediaAffinityIntentHandling

The interface that handles requests to update the user’s preference for a media item.

## Declaration

```swift
protocol INUpdateMediaAffinityIntentHandling : NSObjectProtocol
```

## Overview

Overview Use the methods of the INUpdateMediaAffinityIntentHandling protocol to resolve, confirm, and handle requests that indicate the user’s preference for a media item. Adopt this protocol in an object of your Intents extension capable of providing feedback for media. Siri delivers an INUpdateMediaAffinityIntent object to your handler when the user asks to modify their preference for a media item using your app. Use the methods of this protocol to resolve the parameters and update the user’s preference for the media.

## Topics

### Resolving Details of the Intent

- [resolveAffinityType(for:with:)](intents/inupdatemediaaffinityintenthandling/resolveaffinitytype(for:with:).md)
- [resolveMediaItems(for:with:)](intents/inupdatemediaaffinityintenthandling/resolvemediaitems(for:with:).md)

### Confirming the Response

- [confirm(intent:completion:)](intents/inupdatemediaaffinityintenthandling/confirm(intent:completion:).md)

### Handling the Intent

- [handle(intent:completion:)](intents/inupdatemediaaffinityintenthandling/handle(intent:completion:).md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Update Media Affinity

- [INUpdateMediaAffinityIntent](intents/inupdatemediaaffinityintent.md)
- [INUpdateMediaAffinityIntentResponse](intents/inupdatemediaaffinityintentresponse.md)
