Initializer

init(identifier:content:dateSent:sender:recipients:)

Initializes a message object with the specified unique identifier and content.

Declaration

convenience init(identifier: String, content: String?, dateSent: Date?, sender: INPerson?, recipients: [INPerson]?)

Parameters

identifier

The app-specific unique identifier for the message. Specify a value that you can use to identify the same message later.

content

Text contained in the message.

dateSent

The date that the message was sent.

sender

The user that sent the message. Specify an INPerson object with enough information for you to uniquely identify the user later.

recipients

The users that received the message. Provide an INPerson object for each recipient. Each object must contain enough information for you to uniquely identify the user later.

Return Value

An initialized INMessage object or nil if there was a problem creating the object.