ChatsScreen
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
The modifier to be applied to the root layout of the screen.
The navigator used for managing the navigation between destinations. Defaults to rememberThreePaneNavigator.
Factory for creating the ChannelListViewModel used for managing channel data.
Factory for creating the MentionListViewModel used for managing mentions data.
Factory for creating the ThreadListViewModel used for managing thread data.
A lambda function that provides a MessagesViewModelFactory for managing messages within a selected channel. The factory is created dynamically based on the selected channel and message context (if any). When the initial MessagesViewModelFactory is requested (before a channel is selected), channelId
, messageId
, and parentMessageId
are null
.
The title displayed in the list pane top bar. Default is "Stream Chat"
.
The current search mode. Default is SearchMode.None.
The mode for displaying the list content. Default is ChatListContentMode.Channels.
Callback invoked when the user presses the back button.
Callback invoked when the user clicks on the avatar in the list pane top bar.
Callback invoked when the user clicks on the action icon in the list pane top bar.
Callback invoked when the user clicks on the title in the detail pane top bar.
Callback invoked when the user long presses a channel and clicks "View Info".
The content to display at the top of the list pane.
The content to display at the bottom of the list pane.
The content to display at the top of the detail pane.
The content to display at the bottom of the detail pane.
The content to display in the optional info pane given the provided arguments.