Enumeration

INPlayMediaIntentResponseCode

Codes returned by an app or Intents app extension 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 intents handler is ready to handle the intent.

case continueInApp

The system should launch the app in the foreground to play the media.

case handleInApp

The system should launch the app in the background to play the media.

App

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

case inProgress

The app is preparing to play the media content.

case success

The app is playing the media.

General

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

case unspecified

An unspecified response code.

Failures

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

case failure

A failure occurred while confirming or handling the intent.

case failureNoUnplayedContent

The media container has no unplayed content.

case failureRequiringAppLaunch

The user must launch the app before media playback can begin.

case failureRestrictedContent

The app cannot play the media because of content restrictions.

case failureUnknownMediaType

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

See Also

Providing the Response Code

var code: INPlayMediaIntentResponseCode

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