Package 

Class ChannelItemKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit ChannelItem(ItemState.ChannelItemState channelItem, User currentUser, Function1<Channel, Unit> onChannelClick, Function1<Channel, Unit> onChannelLongClick, Modifier modifier, Function2<RowScope, ItemState.ChannelItemState, Unit> leadingContent, Function2<RowScope, ItemState.ChannelItemState, Unit> centerContent, Function2<RowScope, ItemState.ChannelItemState, Unit> trailingContent) The basic channel item, that shows the channel in a list and exposes single and long click actions.
      • Methods inherited from class java.lang.Object

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

      • ChannelItem

         final static Unit ChannelItem(ItemState.ChannelItemState channelItem, User currentUser, Function1<Channel, Unit> onChannelClick, Function1<Channel, Unit> onChannelLongClick, Modifier modifier, Function2<RowScope, ItemState.ChannelItemState, Unit> leadingContent, Function2<RowScope, ItemState.ChannelItemState, Unit> centerContent, Function2<RowScope, ItemState.ChannelItemState, Unit> trailingContent)

        The basic channel item, that shows the channel in a list and exposes single and long click actions.

        Parameters:
        channelItem - The channel data to show.
        currentUser - The user that's currently logged in.
        onChannelClick - Handler for a single tap on an item.
        onChannelLongClick - Handler for a long tap on an item.
        modifier - Modifier for styling.
        leadingContent - Customizable composable function that represents the leading content of a channel item, usually the avatar that holds an image of the channel or its members.
        centerContent - Customizable composable function that represents the center content of a channel item, usually holding information about its name and the last message.
        trailingContent - Customizable composable function that represents the trailing content of the a channel item, usually information about the last message and the number of unread messages.