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(person method, and set the
is parameter to
true when the person is the user of the device. For example, if the current device user is sending an outgoing message, set
true. Similarly, when creating the recipient array for an incoming message—which should include the current device user—set
true for the person in the recipient list that is the device user, and set the parameter to
false for the other recipients.