Package 

Class SearchResultItemKt

    • Method Detail

      • SearchResultItem

        @Composable() final static Unit SearchResultItem(ItemState.SearchResultItemState searchResultItemState, User currentUser, Modifier modifier, Function1<Message, Unit> onSearchResultClick, Function2<RowScope, ItemState.SearchResultItemState, Unit> leadingContent, Function2<RowScope, ItemState.SearchResultItemState, Unit> centerContent, Function2<RowScope, ItemState.SearchResultItemState, Unit> trailingContent)

        The basic search result item that show the message and the channel name in a list and expose click actions.

        Parameters:
        searchResultItemState - The state of the search result item.
        currentUser - The currently logged in user.
        modifier - Modifier for styling.
        onSearchResultClick - The optional action to execute when the item is clicked.
        leadingContent - Customizable composable function that represents the leading content of a search result item, usually the avatar that holds an image of the user that sent the message.
        centerContent - Customizable composable function that represents the center content of a search result item, usually holding information about the message and who and where it was sent.
        trailingContent - Customizable composable function that represents the trailing content of a search result item, usually information about the date where the message was sent.