<!--
{
  "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/INUpdateMediaAffinityIntentHandling",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(pl)INUpdateMediaAffinityIntentHandling"
  },
  "title" : "INUpdateMediaAffinityIntentHandling"
}
-->

# INUpdateMediaAffinityIntentHandling

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

```
protocol INUpdateMediaAffinityIntentHandling : NSObjectProtocol
```

## Overview

Use the methods of the [`INUpdateMediaAffinityIntentHandling`](/documentation/Intents/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`](/documentation/Intents/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

[`-  resolveAffinityTypeForUpdateMediaAffinity:withCompletion:`](/documentation/Intents/INUpdateMediaAffinityIntentHandling/resolveAffinityType(for:with:))

Resolves the affinity type to which the media item is updated.

[`-  resolveMediaItemsForUpdateMediaAffinity:withCompletion:`](/documentation/Intents/INUpdateMediaAffinityIntentHandling/resolveMediaItems(for:with:))

Resolves the media items for which the user’s preferences are updated.

### Confirming the Response

[`-  confirmUpdateMediaAffinity:completion:`](/documentation/Intents/INUpdateMediaAffinityIntentHandling/confirm(intent:completion:))

Confirms the details of the update media affinity request.

### Handling the Intent

[`-  handleUpdateMediaAffinity:completion:`](/documentation/Intents/INUpdateMediaAffinityIntentHandling/handle(intent:completion:))

Handles the media update affinity request.

## Relationships

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

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)