Initializes a message object with the specified unique identifier and content.
- iOS 10.0+
- Mac Catalyst 13.0+
- watchOS 3.2+
The app-specific unique identifier for the message. Specify a value that you can use to identify the same message later.
Text contained in the message.
The date that the message was sent.
The user that sent the message. Specify an
INPersonobject with enough information for you to uniquely identify the user later.
The users that received the message. Provide an
INPersonobject for each recipient. Each object must contain enough information for you to uniquely identify the user later.
INMessage object or
nil if there was a problem creating the object.