---
title: "init(callType:dateCreated:recipient:callCapabilities:)"
framework: intents
role: symbol
role_heading: Initializer
path: "intents/insearchcallhistoryintent/init(calltype:datecreated:recipient:callcapabilities:)"
---

# init(callType:dateCreated:recipient:callCapabilities:)

Creates a search call history intent object with the specified search criteria.

## Declaration

```swift
convenience init(callType: INCallRecordType, dateCreated: INDateComponentsRange?, recipient: INPerson?, callCapabilities: INCallCapabilityOptions = [])
```

## Parameters

- `callType`: The type of call to search. Use this parameter to specify whether you want to search all calls or search only outgoing calls, missed calls, or received calls.
- `dateCreated`: The dates associated with the call records. Use this parameter to specify the range of dates to search.
- `recipient`: The person who received the call. Match the information in this parameter against the user’s contacts.
- `callCapabilities`: The audio-video capabilities of the call. Use this parameter to specify whether you want to search audio-only calls, video calls, or both. You can combine the constants of the doc://com.apple.sirikit/documentation/Intents/INCallCapabilityOptions type as needed.

## Return Value

Return Value A new INSearchCallHistoryIntent object.

## Discussion

Discussion Normally, you don’t create instances of this class yourself. Instead, Siri creates instances when the user asks to search their call history. However, you can use this method during testing to create intent objects in order to validate your intent handling code paths.

## See Also

### Initializing the Intent Object

- [init(dateCreated:recipient:callCapabilities:callTypes:unseen:)](intents/insearchcallhistoryintent/init(datecreated:recipient:callcapabilities:calltypes:unseen:).md)
