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

# code

A response code that indicates whether the app successfully added the media.

## Declaration

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

## See Also

### Providing the Response Code

- [INAddMediaIntentResponseCode](intents/inaddmediaintentresponsecode.md)
