Class

INAddMediaIntentResponse

An intents handler's response to an add media intent.

Declaration

@interface INAddMediaIntentResponse : INIntentResponse

Overview

Use an INAddMediaIntentResponse object to specify the results after the user attempts to add the specified media. After performing the add action using the criteria specified in the INAddMediaIntent object, create an instance of this class with the results of the action. Siri communicates the status from your response to the user at appropriate times.

You create an INAddMediaIntentResponse object in the confirmAddMedia:completion: and handleAddMedia:completion: methods of your add media handler object. For more information about implementing your handler object, see INAddMediaIntentHandling.

Topics

Initializing the Response Object

- initWithCode:userActivity:

Initializes the response object with the specified code and user activity object.

Providing the Response Code

code

A response code that indicates whether the app successfully added the media.

INAddMediaIntentResponseCode

Codes returned by an app or Intents app extension when handling or confirming an add media intent.

Relationships

Inherits From

See Also

Add Media

INAddMediaIntentHandling

The handler interface that adds media.

INAddMediaIntent

A request to add a media item.