Protocol

INPlayMediaIntentHandling

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

Declaration

protocol INPlayMediaIntentHandling

Overview

Use the methods of the INPlayMediaIntentHandling protocol to confirm and handle requests for media playback in your app. Adopt this protocol in an object of your Intents app extension capable of verifying that the media is playable in your app. When handling the playback request, send the request to your app and let your app perform the playback, rather than playing the media in the extension. The lifespan of extensions is too short for media playback.

Siri delivers an INPlayMediaIntent object to your handler when the user invokes the media intent shortcut. This intent object contains metadata that identifies the requested media content.

Relationships

Inherits From

See Also

Playable Media Intents

Playing Media Through Siri Shortcuts

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

class INPlayMediaIntent

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

class INPlayMediaIntentResponse

Your response to a play media intent.