Class

INPlayMediaIntentResponse

Your response to a play media intent.

Declaration

class 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

Getting the Response Code

var code: INPlayMediaIntentResponseCode

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

enum INPlayMediaIntentResponseCode

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

Managing Now-Playing Information

var nowPlayingInfo: [String : Any]?

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

Relationships

Inherits From

Conforms To

See Also

Playable Media Intents

Playing Media Through Siri Shortcuts

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

protocol INPlayMediaIntentHandling

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

class INPlayMediaIntent

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software