Enumeration

INMessageType

Constants indicating the type of content contained in a message.

Declaration

enum INMessageType : Int

Topics

General Types

case unspecified

The message content isn’t specified.

case text

The message content is text-based.

case animoji

The message content is an animoji.

case audio

The message contains audio content.

case digitalTouch

The message contains digital touch content.

case handwriting

The message contains handwritten content.

case sticker

The message contains sticker content.

case link

The message contains link content.

case file

The message contains a file.

case activitySnippet

The message contains an activity snippet.

Media Types

case mediaCalendar

Media content containing calendar data.

case mediaLocation

Media content containing location data.

case mediaAddressCard

Media content containing an address card.

case mediaImage

Media content containing an image.

case mediaVideo

Media content containing video.

case mediaPass

Media content containing PassKit data.

case mediaAudio

Media content containing audio.

Payment Types

case paymentNote

Content indicating the message contains notes about a payment.

case paymentRequest

Content indicating the message contains payment request information.

case paymentSent

Content indicating the message contains sent payment information.

Tapback Types

case tapbackLiked

Content indicating that the user liked something.

case tapbackDisliked

Content indicating that the user disliked something.

case tapbackEmphasized

Content indicating that the user emphasized something.

case tapbackLoved

Content indicating that the user loved something.

case tapbackQuestioned

Content indicating that the user questioned something.

case tapbackLaughed

Content indicating that the user laughed at something.

See Also

Getting the Message Attributes

var messageType: INMessageType

The type of content contained in the message.

var sender: INPerson?

The user that sent the 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.