MessageType

public protocol MessageType

A standard protocol representing a message. Use this protocol to create your own message object to be used by MessageKit.

  • The sender of the message.

    Declaration

    Swift

    var sender: Sender
  • The unique identifier for the message.

    Declaration

    Swift

    var messageId: String
  • The date the message was sent.

    Declaration

    Swift

    var sentDate: Date
  • The kind of message and its underlying kind.

    Declaration

    Swift

    var kind: MessageKind