Class

INPlayMediaIntentResponse

Your response to a play media intent.

Declaration

@interface INPlayMediaIntentResponse : INIntentResponse

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

- initWithCode:userActivity:

Initializes a response for a play media intent.

Getting the Response Code

code

A response code that indicates whether the app can play the media.

INPlayMediaIntentResponseCode

The response codes an Intents app extension or app returns when handling or confirming a play media intent.

Managing Now-Playing Information

nowPlayingInfo

The now-playing information, such as title and artwork, for the media.

Relationships

Inherits From

See Also

Playable Media Intents

Playing Media Through Siri Shortcuts

Play audio and video from your app using media intent shortcuts.

INPlayMediaIntentHandling

The interface an object implements to confirm and handle play media intents.

INPlayMediaIntent

An intent that contains information about media playable from your app.