MessagesDisplayDelegate

public protocol MessagesDisplayDelegate: AnyObject

A protocol used by the MessagesViewController to customize the appearance of a MessageContentCell.

  • Used to configure the UIImageView of a `MediaMessageCell.

    Default Implementation

    Declaration

    Swift

    func configureMediaMessageImageView(_ imageView: UIImageView, for message: MessageType, at indexPath: IndexPath, in messagesCollectionView: MessagesCollectionView)

    Parameters

    imageView

    The UIImageView of the cell.

    message

    The MessageType that will be displayed by this cell.

    indexPath

    The IndexPath of the cell.

    messagesCollectionView

    The MessagesCollectionView in which this cell will be displayed.