Class

INSendMessageIntentResponse

Your app’s response to a send message intent.

Overview

Use an INSendMessageIntentResponse object to specify the results of sending a message to another user. You create instances of this class when confirming or handling a send message intent. Use this object to communicate whether the message was sent successfully or whether an error occurred.

You create an INSendMessageIntentResponse object in the confirm(intent:completion:) and handle(intent:completion:) methods of your send message handler object. For more information about implementing your handler object, see INSendMessageIntentHandling.

Topics

Initializing the Response Object

init(code: INSendMessageIntentResponseCode, userActivity: NSUserActivity?)

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

Getting the Response Code

var code: INSendMessageIntentResponseCode

The code indicating whether you successfully handled the intent.

enum INSendMessageIntentResponseCode

Constants indicating the state of the response.

Providing the Message

var sentMessage: INMessage?

The message that was sent.

Relationships

Inherits From

Conforms To

See Also

Send a Message

protocol INSendMessageIntentHandling

The handler interface for sending messages to one or more designated users.

class INSendMessageIntent

A request to send a message to the designated recipients.