Initializes a message object with the specified unique identifier and content.
- iOS 11.0+
- Mac Catalyst 13.0+
- watchOS 4.0+
The app-specific unique identifier for the message. Specify a value that you can use to identify the same message later.
The identifier for the conversation containing the message. Use this parameter to associate individual messages with a larger discussion among a specific group of users.
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.
The type of content contained in the message.
INMessage object or
nil if there was a problem creating the object.