Class

INStartPhotoPlaybackIntentResponse

Your app’s response to a start photo playback intent.

Declaration

class INStartPhotoPlaybackIntentResponse : INIntentResponse

Overview

Use an INStartPhotoPlaybackIntentResponse object to specify the status of searching the user’s photos and the readiness of your app to begin playing those photos in a slideshow. After performing a search using the criteria specified in the INStartPhotoPlaybackIntent object, create an instance of this class with the results. Siri communicates the status from your response to the user at appropriate times.

You create an INStartPhotoPlaybackIntentResponse object in the confirm(intent:completion:) and handle(intent:completion:) methods of your start photo playback handler object. For more information about implementing your handler object, see INStartPhotoPlaybackIntentHandling.

Topics

Initializing the Response Object

init(code: INStartPhotoPlaybackIntentResponseCode, userActivity: NSUserActivity?)

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

Getting the Response Code

var code: INStartPhotoPlaybackIntentResponseCode

The code indicating whether you successfully handled the intent.

enum INStartPhotoPlaybackIntentResponseCode

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

Start Photo Playback

protocol INStartPhotoPlaybackIntentHandling

The handler interface for searching the user’s photos and the playback of the results.

class INStartPhotoPlaybackIntent

A request to search for photos and initiate a slideshow with the results.