---
title: INAddMediaIntentResponse
framework: intents
role: symbol
role_heading: Class
path: intents/inaddmediaintentresponse
---

# INAddMediaIntentResponse

An intents handler’s response to an add media intent.

## Declaration

```swift
class INAddMediaIntentResponse
```

## Overview

Overview Use an INAddMediaIntentResponse object to specify the results after the user attempts to add the specified media. After performing the add action using the criteria specified in the INAddMediaIntent object, create an instance of this class with the results of the action. Siri communicates the status from your response to the user at appropriate times. You create an INAddMediaIntentResponse object in the confirm(intent:completion:) and handle(intent:completion:) methods of your add media handler object. For more information about implementing your handler object, see INAddMediaIntentHandling.

## Topics

### Initializing the Response Object

- [init(code:userActivity:)](intents/inaddmediaintentresponse/init(code:useractivity:).md)

### Providing the Response Code

- [code](intents/inaddmediaintentresponse/code.md)
- [INAddMediaIntentResponseCode](intents/inaddmediaintentresponsecode.md)

## Relationships

### Inherits From

- [INIntentResponse](intents/inintentresponse.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Add Media

- [INAddMediaIntentHandling](intents/inaddmediaintenthandling.md)
- [INAddMediaIntent](intents/inaddmediaintent.md)
