Create a response for a play media intent.
SDKs
- iOS 12.0+
- Mac Catalyst 13.0+
- watchOS 5.0+
Framework
- Intents
Declaration
init(code: INPlay Media Intent Response Code, userActivity: NSUser Activity?)
Parameters
code
A response code that indicates whether the app can play the media.
userActivity
A user activity that contains private state data that your Intents app extension shares with your main app.