Class

INSearchForMessagesIntentResponse

Your app’s response to a search for messages intent.

Declaration

@interface INSearchForMessagesIntentResponse : INIntentResponse

Overview

Use an INSearchForMessagesIntentResponse object to specify the results of searching the user’s messages. After performing a search using the criteria specified in the INSearchForMessagesIntent object, create an instance of this class with the results of that search. Siri communicates the status from your response to the user at appropriate times.

You create an INSearchForMessagesIntentResponse object in the confirmSearchForMessages:completion: and handleSearchForMessages:completion: methods of your search for messages handler object. For more information about implementing your handler object, see INSearchForMessagesIntentHandling.

Topics

Initializing the Response Object

- initWithCode:userActivity:

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

Getting the Response Code

code

The code indicating whether you successfully handled the intent.

INSearchForMessagesIntentResponseCode

Constants that indicate the response state.

Accessing the Response Details

messages

The array of messages matching the search parameters.

Relationships

Inherits From

See Also

Search for Messages

INSearchForMessagesIntentHandling

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

INSearchForMessagesIntent

A request to list the messages matching the specified criteria.