---
title: INSearchForMessagesIntentResponse
framework: intents
role: symbol
role_heading: Class
path: intents/insearchformessagesintentresponse
---

# INSearchForMessagesIntentResponse

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

## Declaration

```swift
class INSearchForMessagesIntentResponse
```

## Overview

Overview Use an INSearchForMessagesIntentResponse object to specify the results of searching the user’s messages. After performing a search using the criteria specified in the INSearchForMessagesIntent 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 INSearchForMessagesIntentResponse object in the confirm(intent:completion:) and handle(intent:completion:) methods of your search for messages handler object. For more information about implementing your handler object, see INSearchForMessagesIntentHandling.

## Topics

### Initializing the Response Object

- [init(code:userActivity:)](intents/insearchformessagesintentresponse/init(code:useractivity:).md)

### Getting the Response Code

- [code](intents/insearchformessagesintentresponse/code.md)
- [INSearchForMessagesIntentResponseCode](intents/insearchformessagesintentresponsecode.md)

### Accessing the Response Details

- [messages](intents/insearchformessagesintentresponse/messages.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

### Searching for Messages

- [INSearchForMessagesIntentHandling](intents/insearchformessagesintenthandling.md)
- [INSearchForMessagesIntent](intents/insearchformessagesintent.md)
