---
title: code
framework: intents
role: symbol
role_heading: Instance Property
path: intents/inupdatemediaaffinityintentresponse/code
---

# code

The code that indicates whether the app successfully updated the user’s affinity for the media.

## Declaration

```swift
var code: INUpdateMediaAffinityIntentResponseCode { get }
```

## See Also

### Providing the Response Code

- [INUpdateMediaAffinityIntentResponseCode](intents/inupdatemediaaffinityintentresponsecode.md)
