Class

INAddMediaIntentResponse

Your app’s response to an add media intent.

Declaration

class 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 confirm(intent:completion:) and handle(intent:completion:) methods of your add media handler object. For more information about implementing your handler object, see INAddMediaIntentHandling.

Topics

Initializing the Response Object

init(code: INAddMediaIntentResponseCode, userActivity: NSUserActivity?)

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

Getting the Response Code

var code: INAddMediaIntentResponseCode

The code that indicates whether your app successfully handled the intent.

enum INAddMediaIntentResponseCode

Constants that indicates the status of the add media request.

Relationships

Inherits From

Conforms To

See Also

Add Media

protocol INAddMediaIntentHandling

The handler interface that adds media.

Beta
class INAddMediaIntent

A request to add a media item.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software