Photos

Search for and display photos.

Overview

Users can initiate a search for photos or start playback of a slideshow from Siri. Your Intents app extension validates any photo-related parameters and transfers control of the process to your app, which displays the resulting photos.

Figure 1

Starting a slideshow from Siri

Starting a slideshow from Siri

Topics

First Steps

INPhotosDomainHandling

An interface for adopting all of the protocols in the photos domain.

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.

INSearchForPhotosIntentResponse

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

Start Photo Playback

INStartPhotoPlaybackIntentHandling

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

INStartPhotoPlaybackIntent

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

INStartPhotoPlaybackIntentResponse

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

Data Objects

INPhotoAttributeOptions

Constants indicating attributes of a photo.

See Also

Intent Domains

Messaging

Send messages and search the user's received messages.

Lists and Notes

Create and manage notes and to-do list items.

Workouts

Start, end, and manage fitness routines.

Payments

Send payments between users or pay bills.

VoIP Calling

Initiate calls and search the user's call history.

Visual Codes

Convey contact and payment information using Quick Response (QR) codes.

Ride Booking

Book rides and report their status.

Car Commands

Manage vehicle door locks and get the vehicle's status.

CarPlay

Interact with a vehicle's CarPlay system.

Restaurant Reservations

Create and manage restaurant reservations with help from the Maps app.