Information about a message managed by your app.
- iOS 10.0+
- Mac Catalyst 13.0+
- watchOS 3.2+
INMessage object conveys information about your app’s messages to Siri. You create message objects as part of your response to an
INSearch object. Message objects contain the unique message identifier and additional information such as the message contents, sender, and recipients.
When creating the
INPerson object for the sender or recipients, use the
init method, and set the
is parameter to
YES when the person is the user of the device. For example, when the current device user sends an outgoing message, set
YES. Similarly, when creating the recipient array for an incoming message—which should include the current device user—set
YES for the person in the recipient list that is the device user, and set the parameter to
NO for the other recipients.