init(recipients:content:speakableGroupName:conversationIdentifier:serviceName:sender:)
Initializes a send message intent object with the specified content and recipients.
Declaration
convenience init(recipients: [INPerson]?, content: String?, speakableGroupName: INSpeakableString?, conversationIdentifier: String?, serviceName: String?, sender: INPerson?)Parameters
- recipients:
The intended recipients of the message.
- content:
The contents of the message.
- speakableGroupName:
The name of a group that should receive the message. Specify
nilif you do not want to send the message to a group address. - conversationIdentifier:
The unique identifier for the message conversation. Specify
nilif your app does not assign identifiers to conversations between users. - serviceName:
The specific service to use when sending the message. You may specify
nilif your app has only one way of sending messages. - sender:
The person that created the message.
Return Value
An initialized intent or nil if the object could not be created.