Package 

Class ChannelMediaAttachmentsScreenKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit ChannelMediaAttachmentsScreen(ChannelAttachmentsViewModelFactory viewModelFactory, Modifier modifier, Integer gridColumnCount, Function1<ChannelAttachmentsViewState.Content.Item, String> headerKeySelector, Function0<Unit> onNavigationIconClick, Function1<Throwable, Unit> onVideoPlaybackError, Function1<Error, Unit> onSharingError) Displays the channel media attachments screen.
      • Methods inherited from class java.lang.Object

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

      • ChannelMediaAttachmentsScreen

        @Composable() final static Unit ChannelMediaAttachmentsScreen(ChannelAttachmentsViewModelFactory viewModelFactory, Modifier modifier, Integer gridColumnCount, Function1<ChannelAttachmentsViewState.Content.Item, String> headerKeySelector, Function0<Unit> onNavigationIconClick, Function1<Throwable, Unit> onVideoPlaybackError, Function1<Error, Unit> onSharingError)

        Displays the channel media attachments screen.

        This screen includes a top bar, a grid of media attachments, and display a preview screen when an attachment is clicked. The attachments can be images or videos. The screen supports loading more attachments when the user scrolls to the end of the grid. It also supports grouping media items 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.
        gridColumnCount - The number of columns in the grid.
        headerKeySelector - The function to select the group key for each media item and group them in the grid.
        onNavigationIconClick - The callback to be invoked when the navigation icon is clicked.
        onVideoPlaybackError - The callback to be invoked when there is an error during video playback.
        onSharingError - The callback to be invoked when there is an error during attachment sharing.