Class

INSearchForMessagesIntentResponse

Contains your app’s response to a search for messages intent.

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 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.

Topics

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 indicating the status of the response.

Accessing the Response Details

var messages: [INMessage]?

The array of messages matching the search parameters.

Relationships

Inherits From

Conforms To

See Also

Search for Messages

protocol INSearchForMessagesIntentHandling

Handles the searching of the current user’s messages.

class INSearchForMessagesIntent

Requests a list of messages matching the specified criteria.