tencent cloud

Feedback

TUIKit APIs (iOS)

Last updated: 2024-02-19 10:10:42

    TUIConversationListController

    TUIConversationListController can display recent conversations, internally monitor conversation change notifications, and sort them by time.
    API
    Description
    Delegates callback to externally process selected events.
    Indicates the data source of the controller.

    Chat Interface

    The chat interface consists of the chat controller and input controller.

    TUIChatController

    TUIChatController combines the two major components of the chat interface and exports APIs externally to facilitate message customization.
    API
    Description
    Implements the main chat TableView.
    Indicates the input controller.
    Delegates callback for UI events and custom cells.
    Provides more menu item data.
    Sends custom messages.
    Saves drafts.

    TUIMessageCell

    TUIMessageCell is the basic class for each message. All UI elements of messages can be accessed through TUIMessageCell.
    API
    Description
    Indicates the profile photo.
    Indicates the nickname label.
    Indicates the main message content container.
    Indicates the indicator for loading activities.
    Indicates the retry view.
    Indicates the message data source.
    Delegates message UI events.
    Updates data sources.

    TUIMessageCellData

    When iOS TableView is scrolled, TableViewCell will be reused, and all message data is stored in TUIMessageCellData instead of Cell. During display, fillWithData will be internally invoked to refresh the interface.
    API
    Description
    Indicates the message sender ID.
    Indicates the URL of the profile photo.
    Indicates the profile photo image.
    Indicates the nickname.
    Indicates whether to display the nickname.
    Indicates the messaging direction, which is receiving or sending.
    Indicates the message status.
    Indicates the message object used by the IM SDK.
    Indicates the font of the nickname.
    Indicates the color of the nickname.
    Indicates the message layout, which controls the profile photo, nickname, bubble, and other positions.
    Indicates the message content size.