Package 

Class PinnedMessageListKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit PinnedMessageList(PinnedMessageListViewModel viewModel, Modifier modifier, User currentUser, Function1<Message, Unit> onPinnedMessageClick, Function1<Message, Unit> itemContent, Function1<Integer, Unit> itemDivider, Function0<Unit> emptyContent, Function0<Unit> loadingContent, Function0<Unit> loadingMoreContent) Default 'Pinned Messages List' component, which relies on PinnedMessageListViewModel to show and allow interactions with the pinned messages from a given channel.
      • Methods inherited from class java.lang.Object

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

      • PinnedMessageList

        @Composable() final static Unit PinnedMessageList(PinnedMessageListViewModel viewModel, Modifier modifier, User currentUser, Function1<Message, Unit> onPinnedMessageClick, Function1<Message, Unit> itemContent, Function1<Integer, Unit> itemDivider, Function0<Unit> emptyContent, Function0<Unit> loadingContent, Function0<Unit> loadingMoreContent)

        Default 'Pinned Messages List' component, which relies on PinnedMessageListViewModel to show and allow interactions with the pinned messages from a given channel.

        Parameters:
        viewModel - The PinnedMessageListViewModel holding the data and the business logic for showing the pinned messages from a given channel.
        modifier - Modifier instance for general styling.
        currentUser - The currently logged User, used for formatting the message preview.
        onPinnedMessageClick - Action to be invoked when the user clicks on a message from the list.
        itemContent - Composable rendering each Message item in the list.
        itemDivider - Composable rendering the divider between messages.
        emptyContent - Composable shown when there are no pinned messages to display.
        loadingContent - Composable shown during the initial loading of the pinned messages.
        loadingMoreContent - Composable shown at the bottom of the list during the loading of more pinned messages (pagination).