Package 

Class ThreadItemKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit ThreadItem(Thread thread, User currentUser, Function1<Thread, Unit> onThreadClick, Modifier modifier, Function1<Channel, Unit> titleContent, Function2<RowScope, Message, Unit> replyToContent, Function2<RowScope, Integer, Unit> unreadCountContent, Function1<Message, Unit> latestReplyContent) The basic Thread item, showing information about the Thread title, parent message, last reply and number of unread replies.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • ThreadItem

        @Composable() final static Unit ThreadItem(Thread thread, User currentUser, Function1<Thread, Unit> onThreadClick, Modifier modifier, Function1<Channel, Unit> titleContent, Function2<RowScope, Message, Unit> replyToContent, Function2<RowScope, Integer, Unit> unreadCountContent, Function1<Message, Unit> latestReplyContent)

        The basic Thread item, showing information about the Thread title, parent message, last reply and number of unread replies.

        Parameters:
        thread - The Thread object holding the data to be rendered.
        currentUser - The currently logged User, used for formatting the message in the thread preview.
        onThreadClick - Action invoked when the user clicks on the item.
        modifier - Modifier instance for general styling.
        titleContent - Composable rendering the title of the thread item.
        replyToContent - Composable rendering the preview of the thread parent message.
        unreadCountContent - Composable rendering the badge indicator of unread replies in a thread.
        latestReplyContent - Composable rendering the preview of the latest reply in the thread.