<!--
{
  "availability" : [
    "iOS: 10.0.0 - 15.0.0",
    "iPadOS: 10.0.0 - 15.0.0",
    "macCatalyst: 13.1.0 - 15.0.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 3.2.0 - 8.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INStartPhotoPlaybackIntentResponse",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INStartPhotoPlaybackIntentResponse"
  },
  "title" : "INStartPhotoPlaybackIntentResponse"
}
-->

# INStartPhotoPlaybackIntentResponse

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

```
class INStartPhotoPlaybackIntentResponse
```

## Overview

Use an [`INStartPhotoPlaybackIntentResponse`](/documentation/Intents/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`](/documentation/Intents/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`](/documentation/Intents/INStartPhotoPlaybackIntentResponse) object in the [`confirm(intent:completion:)`](/documentation/Intents/INStartPhotoPlaybackIntentHandling/confirm(intent:completion:)) and [`handle(intent:completion:)`](/documentation/Intents/INStartPhotoPlaybackIntentHandling/handle(intent:completion:)) methods of your start photo playback handler object. For more information about implementing your handler object, see [`INStartPhotoPlaybackIntentHandling`](/documentation/Intents/INStartPhotoPlaybackIntentHandling).

## Topics

### Initializing the Response Object

[`-  initWithCode:userActivity:`](/documentation/Intents/INStartPhotoPlaybackIntentResponse/init(code:userActivity:))

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

### Getting the Response Code

[`code`](/documentation/Intents/INStartPhotoPlaybackIntentResponse/code)

The code indicating whether you successfully handled the intent.

[`INStartPhotoPlaybackIntentResponseCode`](/documentation/Intents/INStartPhotoPlaybackIntentResponseCode)

Constants indicating the status of the response.

### Accessing the Response Details

[`searchResultsCount`](/documentation/Intents/INStartPhotoPlaybackIntentResponse/searchResultsCount-5r7e7)

The number of photos that match the search parameters.

[`searchResultsCount`](/documentation/Intents/INStartPhotoPlaybackIntentResponse/searchResultsCount-6ns8y)

The number of photos that match the search parameters.

## Relationships

### Inherits From

[`INIntentResponse`](/documentation/Intents/INIntentResponse)

### Conforms To

[`NSCoding`](/documentation/Foundation/NSCoding)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Hashable`](/documentation/Swift/Hashable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)