Protocol

INSendMessageIntentHandling

An interface to handle sending messages to one or more designated users.

Declaration

@protocol INSendMessageIntentHandling

Overview

Use the methods of the INSendMessageIntentHandling protocol to resolve, confirm, and handle requests to send messages to the designated users. Adopt this protocol in an object of your Intents extension that is capable of sending the messages.

Siri delivers an INSendMessageIntent object to your handler when the user asks to send a message using your app. The provided intent object contains the recipients and content of the message. Use the methods of this protocol to resolve the parameters and to validate that sending the message is possible.

Topics

Resolving the Intent Parameters

- resolveRecipientsForSendMessage:completion:

Resolves the user’s input when it is not clear who are the recipients of the message.

- resolveContentForSendMessage:withCompletion:

Resolves the contents of the message.

- resolveSpeakableGroupNameForSendMessage:withCompletion:

Resolves the name of the group receiving the message.

- resolveRecipientsForSendMessage:withCompletion:

Called when you need to resolve the recipients of the message.

Deprecated
- resolveGroupNameForSendMessage:withCompletion:

Called when you need to resolve the name of the group receiving the message.

Deprecated

Confirming the Response

- confirmSendMessage:completion:

Confirms that you can send the message.

Handling the Intent

- handleSendMessage:completion:

Sends the message to the specified recipients.

Required.

Relationships

Inherits From

See Also

Send a Message

INSendMessageIntent

A request to send a message to the designated recipients.

INSendMessageIntentResponse

Your app’s response to a send message intent.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software