The interface an object implements to confirm and handle play media intents.
- iOS 12.0+
- Mac Catalyst 13.0+Beta
- watchOS 5.0+
Use the methods of the
INPlay 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
INPlay object to your handler when the user invokes the media intent shortcut. This intent object contains metadata that identifies the requested media content.