Class

MSMessage

A custom message object.

Declaration

@interface MSMessage : NSObject

Overview

Use the MSMessage class to create custom message objects. To create interactive messages that can be updated by the conversation’s participants, instantiate a message with a session using the initWithSession: method. Otherwise, instantiate the message using the init method.

Topics

Creating Messages

- init

Initializes a new message that is not part of a session.

- initWithSession:

Initializes a new message that is part of the provided session.

Message Properties

accessibilityLabel

A localized string that describes the message.

error

An error object describing why the system failed to send the message.

pending

A Boolean value that indicates whether the message is pending or whether it has been sent or received.

layout

A layout object that defines the message’s appearance.

senderParticipantIdentifier

A UUID identifying the participant that sent the message.

session

The session that this message belongs to.

shouldExpire

A Boolean value that determines whether the message should expire after being read.

summaryText

A succinct description of the message.

URL

A URL that encodes data to be transmitted with the message.

Relationships

Inherits From

See Also

Interactive Messages

MSSession

A session object used to create and update messages.

MSMessageLayout

An abstract base class that defines the appearance of MSMessage objects in the conversation transcript.

MSMessageTemplateLayout

A template-based layout for custom messages.

MSMessageLiveLayout

A layout that provides a custom, interactive view inside the transcript.