---
title: INSearchForMessagesIntentHandling
framework: intents
role: symbol
role_heading: Protocol
path: intents/insearchformessagesintenthandling
---

# INSearchForMessagesIntentHandling

An interface that handles requests to search the current user’s messages.

## Declaration

```swift
protocol INSearchForMessagesIntentHandling : NSObjectProtocol
```

## Mentioned in

Dispatching intents to handlers

## Overview

Overview Use the methods of the INSearchForMessagesIntentHandling protocol to resolve, confirm, and handle requests to search the current user’s messages. Adopt this protocol in an object of your Intents extension capable of searching your app’s messages. Siri delivers an INSearchForMessagesIntent object to your handler when the user asks to search their messages. The provided intent object contains the search parameters to use when matching messages. Use the methods of this protocol to resolve the search parameters, to perform the search, and to return the results.

## Topics

### Resolving the Intent Parameters

- [resolveRecipients(for:with:)](intents/insearchformessagesintenthandling/resolverecipients(for:with:).md)
- [resolveSenders(for:with:)](intents/insearchformessagesintenthandling/resolvesenders(for:with:).md)
- [resolveAttributes(for:with:)](intents/insearchformessagesintenthandling/resolveattributes(for:with:).md)
- [resolveDateTimeRange(for:with:)](intents/insearchformessagesintenthandling/resolvedatetimerange(for:with:).md)
- [resolveSpeakableGroupNames(for:with:)](intents/insearchformessagesintenthandling/resolvespeakablegroupnames(for:with:).md)
- [resolveGroupNames(for:with:)](intents/insearchformessagesintenthandling/resolvegroupnames(for:with:).md)

### Confirming the Response

- [confirm(intent:completion:)](intents/insearchformessagesintenthandling/confirm(intent:completion:).md)

### Handling the Intent

- [handle(intent:completion:)](intents/insearchformessagesintenthandling/handle(intent:completion:).md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

### Inherited By

- [INMessagesDomainHandling](intents/inmessagesdomainhandling.md)

## See Also

### Searching for Messages

- [INSearchForMessagesIntent](intents/insearchformessagesintent.md)
- [INSearchForMessagesIntentResponse](intents/insearchformessagesintentresponse.md)
