Class

INSearchForMediaIntentResponse

Your app’s response to a search media intent.

Declaration

@interface INSearchForMediaIntentResponse : INIntentResponse

Overview

Use an INSearchForMediaIntentResponse object to specify the results after searching for the user-specified media. After performing the search action using the criteria specified in the INSearchForMediaIntent 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 INSearchForMediaIntentResponse object in the confirmSearchForMedia:completion: and handleSearchForMedia:completion: methods of your add media handler object. For more information about implementing your handler object, see INSearchForMediaIntentHandling.

Topics

Initializing the Response Object

- initWithCode:userActivity:

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

Getting the Response Code

code

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

INSearchForMediaIntentResponseCode

Constants that indicates the status of the search for media request.

Accessing the Media Item

mediaItems

An array of media items for which to search.

Relationships

Inherits From

See Also

Search for Media

INSearchForMediaIntentHandling

The interface that handles media search requests.

INSearchForMediaIntent

A request to search for a media item.