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


class INSearchForMessagesIntentResponse : INIntentResponse


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 confirm(intent:completion:) and handle(intent:completion:) methods of your search for messages handler object. For more information about implementing your handler object, see INSearchForMessagesIntentHandling.


Initializing the Response Object

init(code: INSearchForMessagesIntentResponseCode, userActivity: NSUserActivity?)

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

Getting the Response Code

var code: INSearchForMessagesIntentResponseCode

The code indicating whether you successfully handled the intent.

enum INSearchForMessagesIntentResponseCode

Constants that indicate the response state.

Accessing the Response Details

var messages: [INMessage]?

The array of messages matching the search parameters.


Inherits From

Conforms To

See Also

Search for Messages

protocol INSearchForMessagesIntentHandling

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

class INSearchForMessagesIntent

A request to list the messages matching the specified criteria.