INSendMessageIntent
A request to send a message to the designated recipients.
Declaration
class INSendMessageIntentMentioned in
Overview
Siri creates an INSendMessageIntent object when the user asks to send a message to one or more users. This intent object contains the message to send and the recipients of the message, which can include groups of users. Use the information in this object to construct and send the message.
To handle this intent, the handler object in your Intents extension must adopt the INSendMessageIntentHandling protocol. Your handler confirms the request and creates an INSendMessageIntentResponse object with the results.
Additional Intent Attributes
Additional attributes of this intent object include the following:
Attribute | Description |
|---|---|
Supported by | Siri Intents, Siri Suggestions |
Always requires unlocked device | No |
Apps can optionally ask the user to unlock the device before handling this intent. To require unlocking of the device, include the name of this class in the IntentsRestrictedWhileLocked key of your Intents extension’s Info.plist file.
Topics
Creating the Intent Object
Specifying Details About a Message
recipientsoutgoingMessageTypeconversationIdentifierspeakableGroupNamecontentserviceNamesenderattachments