---
title: INSearchCallHistoryIntentResponse
framework: intents
role: symbol
role_heading: Class
path: intents/insearchcallhistoryintentresponse
---

# INSearchCallHistoryIntentResponse

Your app’s response to a search call history intent.

## Declaration

```swift
class INSearchCallHistoryIntentResponse
```

## Overview

Overview Use an INSearchCallHistoryIntentResponse object to specify the results of searching the user’s call history. After performing a search using the criteria specified in the INSearchCallHistoryIntent object, create an instance of this class with the results of that search. Your app is responsible for displaying the results of your search, so you must communicate the results to it. One way to communicate those results is through the NSUserActivity object that you create with your response. After creating that object, place the results in its userInfo dictionary. You create an INSearchCallHistoryIntentResponse object in the confirm(intent:completion:) and handle(intent:completion:) methods of your search call history handler object. For more information about implementing your handler object, see INSearchCallHistoryIntentHandling.

## Topics

### Initializing the Response Object

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

### Getting the Response Code

- [code](intents/insearchcallhistoryintentresponse/code.md)
- [INSearchCallHistoryIntentResponseCode](intents/insearchcallhistoryintentresponsecode.md)

### Providing the Search Results

- [callRecords](intents/insearchcallhistoryintentresponse/callrecords.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

### Call History Search

- [INSearchCallHistoryIntentHandling](intents/insearchcallhistoryintenthandling.md)
- [INSearchCallHistoryIntent](intents/insearchcallhistoryintent.md)
