Enumeration

INPlayMediaIntentResponseCode

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

Declaration

enum INPlayMediaIntentResponseCode : Int

Topics

Intents App Extensions

Response codes returned by an Intents app extension when confirming or handling a play media intent.

case ready

The code that indicates the Intents app extension is ready to handle the intent.

case continueInApp

The code that tells the system to launch your app in the foreground to play the media.

case handleInApp

The code that tells the system to launch your app in the background to play the media.

App

Response codes returned by an app when handling a play media intent.

case inProgress

The code that indicates the app is preparing to play the media content.

case success

The code that indicates the app is playing the media.

General

Response codes returned by either an Intents app extension or an app.

case unspecified

An unspecified response code.

Failures

Failure response codes returned by an Intents app extension or app.

case failure

The code that indicates a failure occurred while confirming or handling the intent.

case failureNoUnplayedContent

The code that indicates the media container has no unplayed content.

case failureRequiringAppLaunch

The code that indicates the user must launch your app before media playback can begin.

case failureRestrictedContent

The code that indicates the app cannot play the media because of content restrictions.

case failureUnknownMediaType

The code that indicates the app cannot play the media because the type is unknown or not supported.

See Also

Getting the Response Code

var code: INPlayMediaIntentResponseCode

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