Class

INSearchForPhotosIntentResponse

Contains your app’s response to a search for photos intent.

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 confirm(intent:completion:) and handle(intent:completion:) methods of your search for photos handler object. For more information about implementing your handler object, see INSearchForPhotosIntentHandling.

Topics

Initializing the Response Object

init(code: INSearchForPhotosIntentResponseCode, userActivity: NSUserActivity?)

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

Getting the Response Code

var code: INSearchForPhotosIntentResponseCode

The code indicating whether you successfully handled the intent.

enum INSearchForPhotosIntentResponseCode

Constants indicating the status of the response.

Accessing the Response Details

var searchResultsCount: Int?

The number of photos that match the search parameters.

Relationships

Inherits From

Conforms To

See Also

Search for Photos

Searching for Photos

Use SiriKit to search for photos managed by your app.

protocol INSearchForPhotosIntentHandling

Handles the searching of the user’s photos.

class INSearchForPhotosIntent

Requests a list of photos that match the specified criteria.