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

# INAddMediaIntentResponse

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

```
class INAddMediaIntentResponse
```

## Overview

Use an [`INAddMediaIntentResponse`](/documentation/Intents/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`](/documentation/Intents/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`](/documentation/Intents/INAddMediaIntentResponse) object in the [`confirm(intent:completion:)`](/documentation/Intents/INAddMediaIntentHandling/confirm(intent:completion:)) and [`handle(intent:completion:)`](/documentation/Intents/INAddMediaIntentHandling/handle(intent:completion:)) methods of your add media handler object. For more information about implementing your handler object, see [`INAddMediaIntentHandling`](/documentation/Intents/INAddMediaIntentHandling).

## Topics

### Initializing the Response Object

[`-  initWithCode:userActivity:`](/documentation/Intents/INAddMediaIntentResponse/init(code:userActivity:))

Initializes the response object with the specified code and user activity object.

### Providing the Response Code

[`code`](/documentation/Intents/INAddMediaIntentResponse/code)

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

[`INAddMediaIntentResponseCode`](/documentation/Intents/INAddMediaIntentResponseCode)

Codes returned by an app or Intents app extension when handling or confirming an add media intent.

## Relationships

### Conforms To

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

[`CVarArg`](/documentation/Swift/CVarArg)

[`Hashable`](/documentation/Swift/Hashable)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`NSCopying`](/documentation/Foundation/NSCopying)

### Inherits From

[`INIntentResponse`](/documentation/Intents/INIntentResponse)

---

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)