Class

INSearchCallHistoryIntentResponse

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

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: INSearchCallHistoryIntentResponseCode, userActivity: NSUserActivity?)

Initializes the response object with the specified code and user activity object.

Getting the Response Code

var code: INSearchCallHistoryIntentResponseCode

The code indicating whether you successfully handled the intent.

enum INSearchCallHistoryIntentResponseCode

Constants indicating the status of the response.

Providing the Search Results

var callRecords: [INCallRecord]?

An array of call records representing the results of the search.

Relationships

Inherits From

Conforms To

See Also

Search the Call History

protocol INSearchCallHistoryIntentHandling

The handler interface for searching the user’s call history.

class INSearchCallHistoryIntent

A request to list the calls matching the specified criteria.