---
title: INSearchForPhotosIntentResponse
framework: intents
role: symbol
role_heading: Class
path: intents/insearchforphotosintentresponse
---

# INSearchForPhotosIntentResponse

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

## Declaration

```swift
class INSearchForPhotosIntentResponse
```

## Overview

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:userActivity:)](intents/insearchforphotosintentresponse/init(code:useractivity:).md)

### Getting the Response Code

- [code](intents/insearchforphotosintentresponse/code.md)
- [INSearchForPhotosIntentResponseCode](intents/insearchforphotosintentresponsecode.md)

### Accessing the Response Details

- [searchResultsCount](intents/insearchforphotosintentresponse/searchresultscount-82lnb.md)

## Relationships

### Inherits From

- [INIntentResponse](intents/inintentresponse.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Photo Search

- [INSearchForPhotosIntentHandling](intents/insearchforphotosintenthandling.md)
- [INSearchForPhotosIntent](intents/insearchforphotosintent.md)
