initWithDateCreated:recipient:callCapabilities:callTypes:unseen:
Initializes the search call history intent object with the specified search criteria.
Declaration
- (instancetype) initWithDateCreated:(INDateComponentsRange *) dateCreated recipient:(INPerson *) recipient callCapabilities:(INCallCapabilityOptions) callCapabilities callTypes:(INCallRecordTypeOptions) callTypes unseen:(NSNumber *) unseen;Parameters
- 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 Incallcapabilityoptions type as needed.
- callTypes:
The types of calls to search. Use this parameter to specify whether you want to search all calls or search only outgoing calls, missed calls, or received calls.
- unseen:
A Boolean indicating whether the user has seen the call yet.
Return Value
A new INSearchCallHistoryIntent object.
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.