Initializes a message object with the specified unique identifier and content.
- iOS 13.2+
- Mac Catalyst 13.2+
- watchOS 6.1+
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 name of the group that received the message.
The type of content contained in the message.
The name of the service used to send the message. This parameter will typically be
nilif your app only supports a single service.
INMessage object or
nil if there was a problem creating the object.