Class

INSearchForPhotosIntentResponse

Your app’s response to a search for photos intent.

Declaration

@interface INSearchForPhotosIntentResponse : INIntentResponse

Overview

Use an INSearchForPhotosIntentResponse object to specify the results of searching the user’s photos. After performing a search using the criteria specified in the INSearchForPhotosIntent object, create an instance of this class with the results of that search. Siri communicates the status from your response to the user at appropriate times.

You create an INSearchForPhotosIntentResponse object in the confirmSearchForPhotos:completion: and handleSearchForPhotos:completion: methods of your search for photos handler object. For more information about implementing your handler object, see INSearchForPhotosIntentHandling.

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 indicating whether you successfully handled the intent.

INSearchForPhotosIntentResponseCode

Constants indicating the status of the response.

Accessing the Response Details

searchResultsCount

The number of photos that match the search parameters.

Relationships

Inherits From

See Also

Search for Photos

Searching for Photos

Use SiriKit to search for photos managed by your app.

INSearchForPhotosIntentHandling

The handler interface for searching the user’s photos.

INSearchForPhotosIntent

A request for the list of photos that match the specified criteria.