---
title: INPlayMediaIntentResponse
framework: intents
role: symbol
role_heading: Class
path: intents/inplaymediaintentresponse
---

# INPlayMediaIntentResponse

An intents handler’s response to a play media intent.

## Declaration

```swift
class INPlayMediaIntentResponse
```

## Overview

Overview Create an instance of this class when you are: Confirming your app can play the media. Handling the request to play the media. To send private state data from your Intents app extension to your app, store the data in an NSUserActivity object and include the object when creating the INPlayMediaIntentResponse instance.

## Topics

### Creating a Play Media Intent Response

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

### Providing the Response Code

- [code](intents/inplaymediaintentresponse/code.md)
- [INPlayMediaIntentResponseCode](intents/inplaymediaintentresponsecode.md)

### Managing Now-Playing Information

- [nowPlayingInfo](intents/inplaymediaintentresponse/nowplayinginfo.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

### Playable Media Intents

- [INPlayMediaIntentHandling](intents/inplaymediaintenthandling.md)
- [INPlayMediaIntent](intents/inplaymediaintent.md)
