Instance Property

sender

The user that sent the message.

Declaration

@NSCopying var sender: INPerson? { get }

Discussion

When creating a new INPerson object for sender, use the init(personHandle:nameComponents:displayName:image:contactIdentifier:customIdentifier:isMe:)method, and set the isMe parameter to true if the sender is also the user of the device.

See Also

Getting the Message Attributes

var messageType: INMessageType

The type of content contained in the message.

enum INMessageType

Constants indicating the type of content contained in a message.

var recipients: [INPerson]?

The users that received the message.

var groupName: INSpeakableString?

The name of the group associated with the message.

var content: String?

The content of the message.

var dateSent: Date?

The date the sender sent the message.