Package 

Class ChannelFilesAttachmentsScreenKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit ChannelFilesAttachmentsScreen(ChannelAttachmentsViewModelFactory viewModelFactory, Modifier modifier, User currentUser, Boolean stickHeader, Function1<ChannelAttachmentsViewState.Content.Item, String> headerKeySelector, Function0<Unit> onNavigationIconClick) Displays the channel files attachments screen.
      • Methods inherited from class java.lang.Object

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

      • ChannelFilesAttachmentsScreen

        @Composable() final static Unit ChannelFilesAttachmentsScreen(ChannelAttachmentsViewModelFactory viewModelFactory, Modifier modifier, User currentUser, Boolean stickHeader, Function1<ChannelAttachmentsViewState.Content.Item, String> headerKeySelector, Function0<Unit> onNavigationIconClick)

        Displays the channel files attachments screen.

        The screen includes a top bar, a list of file attachments, and handles attachments click events with ChatTheme.attachmentPreviewHandlers. The screen supports loading more attachments when the user scrolls to the end of the list. It also supports grouping attachments by a header key, which can be customized using the headerKeySelector function.

        Parameters:
        viewModelFactory - The factory to create the ChannelAttachmentsViewModel.
        modifier - The modifier for styling.
        currentUser - The currently logged in user.
        stickHeader - Whether the header should stick to the top of the list when scrolling.
        headerKeySelector - The function to select the group key for each item and group them in the list.
        onNavigationIconClick - The callback to be invoked when the navigation icon is clicked.