Protocols
The following protocols are available globally.
-
A standard protocol representing a message. Use this protocol to create your own message object to be used by MessageKit.
See moreDeclaration
Swift
public protocol MessageType
-
A protocol used by the
See moreMessagesViewController
to customize the appearance of aMessageContentCell
.Declaration
Swift
public protocol MessagesDisplayDelegate: AnyObject
-
A protocol used by
See moreMessageContentCell
subclasses to detect taps in the cell’s subviews.Declaration
Swift
public protocol MessageCellDelegate: MessageLabelDelegate
-
A protocol used by the
See moreMessagesCollectionViewFlowLayout
object to determine the size and layout of aMessageCollectionViewCell
and its contents.Declaration
Swift
public protocol MessagesLayoutDelegate: AnyObject
-
A protocol used to represent the data for a media message.
See moreDeclaration
Swift
public protocol MediaItem
-
An object that adopts the
See moreMessagesDataSource
protocol is responsible for providing the data required by aMessagesCollectionView
.Declaration
Swift
public protocol MessagesDataSource: AnyObject
-
A protocol used to handle tap events on detected text.
See moreDeclaration
Swift
public protocol MessageLabelDelegate: AnyObject
-
A protocol used to represent the data for a location message.
See moreDeclaration
Swift
public protocol LocationItem
-
A protocol that can receive different event notifications from the MessageInputBar.
See moreDeclaration
Swift
public protocol MessageInputBarDelegate: AnyObject