MessageContentType

public enum MessageContentType : Equatable, Sendable

The different types of elements of message content.

  • A basic text message.

    Declaration

    Swift

    case text(MessagePayload)
  • It is a URL link with an image preview and a defined title.

    The customer is able to click on it to be forwarded to the particular page.

    Declaration

    Swift

    case richLink(MessageRichLink)
  • Text message with buttons. After the customer clicks on one of the buttons, its content is sent as a reply.

    Usually, when a reply is sent, it is no more possible to click again on any button.

    Declaration

    Swift

    case quickReplies(MessageQuickReplies)
  • A list picker displays a list of items, and information about the items.

    It is a list of options, that customers can choose multiple times and are persistent in the conversation. The options/items are usually shown in overlay with richer formatting capabilities (icon, title, subtitle, sections, etc. in future) and with a bigger count than buttons or quick replies.

    Declaration

    Swift

    case listPicker(MessageListPicker)
  • A time slot picker displays a list of options, and information about the time slot.

    A model representing a time picker message, including the text shown in the conversation, the sheet title, available time slots. Used to configure UI that presents time slot selection to the user.

    Declaration

    Swift

    case timePicker(MessageTimePicker)
  • Represents an unknown content type encountered during parsing or processing.

    This case is used as a fallback when the actual content type cannot be determined or is not supported.

    Declaration

    Swift

    case unknown(fallbackText: String?)

    Parameters

    fallbackText

    An optional string that provides a human-readable description or placeholder for the unknown content.