-
public final class ChatsScreenKt
-
-
Method Summary
Modifier and Type Method Description final static UnitChatsScreen(Modifier modifier, ThreePaneNavigator navigator, ChannelViewModelFactory channelViewModelFactory, MentionListViewModelFactory mentionListViewModelFactory, ThreadsViewModelFactory threadsViewModelFactory, Function2<Context, ChatMessageSelection, MessagesViewModelFactory> messagesViewModelFactoryProvider, String title, SearchMode searchMode, ChatListContentMode listContentMode, Function0<Unit> onBackPress, Function1<User, Unit> onListTopBarAvatarClick, Function0<Unit> onListTopBarActionClick, Function1<Channel, Unit> onDetailTopBarTitleClick, Function1<Channel, Unit> onViewChannelInfoClick, Function0<Unit> listTopBarContent, Function0<Unit> listBottomBarContent, Function2<MessagesViewModelFactory, Function0<Unit>, Unit> detailTopBarContent, Function1<MessagesViewModelFactory, Unit> detailBottomBarContent, Function1<Object, Unit> infoContent)Represents a complete screen for chat, including a list of channels, threads, and messages. -
-
Method Detail
-
ChatsScreen
@Composable() final static Unit ChatsScreen(Modifier modifier, ThreePaneNavigator navigator, ChannelViewModelFactory channelViewModelFactory, MentionListViewModelFactory mentionListViewModelFactory, ThreadsViewModelFactory threadsViewModelFactory, Function2<Context, ChatMessageSelection, MessagesViewModelFactory> messagesViewModelFactoryProvider, String title, SearchMode searchMode, ChatListContentMode listContentMode, Function0<Unit> onBackPress, Function1<User, Unit> onListTopBarAvatarClick, Function0<Unit> onListTopBarActionClick, Function1<Channel, Unit> onDetailTopBarTitleClick, Function1<Channel, Unit> onViewChannelInfoClick, Function0<Unit> listTopBarContent, Function0<Unit> listBottomBarContent, Function2<MessagesViewModelFactory, Function0<Unit>, Unit> detailTopBarContent, Function1<MessagesViewModelFactory, Unit> detailBottomBarContent, Function1<Object, Unit> infoContent)
Represents a complete screen for chat, including a list of channels, threads, and messages. The layout adapts based on the screen size, showing a single-pane layout on smaller screens and a dual-pane layout on larger screens with an optional info pane.
- Parameters:
modifier- The modifier to be applied to the root layout of the screen.navigator- The navigator used for managing the navigation between destinations.channelViewModelFactory- Factory for creating the ChannelListViewModel used for managing channel data.mentionListViewModelFactory- Factory for creating the MentionListViewModel used for managing mentions data.threadsViewModelFactory- Factory for creating the ThreadListViewModel used for managing thread data.messagesViewModelFactoryProvider- A lambda function that provides a MessagesViewModelFactory for managing messages within a selected channel.title- The title displayed in the list pane top bar.searchMode- The current search mode.listContentMode- The mode for displaying the list content.onBackPress- Callback invoked when the user presses the back button.onListTopBarAvatarClick- Callback invoked when the user clicks on the avatar in the list pane top bar.onListTopBarActionClick- Callback invoked when the user clicks on the action icon in the list pane top bar.onDetailTopBarTitleClick- Callback invoked when the user clicks on the title in the detail pane top bar.onViewChannelInfoClick- Callback invoked when the user long presses a channel and clicks "View Info".listTopBarContent- The content to display at the top of the list pane.listBottomBarContent- The content to display at the bottom of the list pane.detailTopBarContent- The content to display at the top of the detail pane.detailBottomBarContent- The content to display at the bottom of the detail pane.infoContent- The content to display in the optional info pane given the provided arguments.
-
-
-
-