MessageList
Default MessageList component, that relies on MessageListViewModel to connect all the data handling operations. It also delegates events to the ViewModel to handle, like long item clicks and pagination.
Parameters
The ViewModel that stores all the data and business logic required to show a list of messages. The user has to provide one in this case, as we require the channelId to start the operations.
Modifier for styling.
Padding values to be applied to the message list surrounding the content inside.
State of the lazy list that represents the list of messages. Useful for controlling the scroll state and focused message offset.
Vertical arrangement of the regular message list. Default: Arrangement.Bottom.
Vertical arrangement of the thread message list. Default: Arrangement.Bottom.
Handler when the user taps on the message, while there's a thread going.
Handler for when the user long taps on a message and selects it.
Handler for pagination when the end of the oldest messages has been reached.
Handler that notifies us when the user scrolls and the last visible message changes.
Handler when the user reaches the bottom.
Handler when the user selects an option in the Media Gallery Preview screen.
Handler for pagination when the end of newest messages have been reached.
Handler when the user requests to scroll to the bottom of the messages list.
Handler for lifecycle events.
Clean representation of the MessageList that is decoupled from ViewModels. This components allows users to connect the UI to their own data providers, as it relies on pure state.
Parameters
The state of the component, represented by MessageListState.
Vertical arrangement of the regular message list. Default: Arrangement.Bottom.
Vertical arrangement of the thread message list. Default: Arrangement.Bottom.
Modifier for styling.
Padding values to be applied to the message list surrounding the content inside.
State of the lazy list that represents the list of messages. Useful for controlling the scroll state and focused message offset.
Handler for pagination.
Handler that notifies us when the user scrolls and the last visible message changes.
Handler when the user scrolls to the bottom.
Handler for pagination when the end of newest messages have been reached.
Handler when the user requests to scroll to the bottom of the messages list.
Handler for lifecycle events.
Factory that builds MessageItemParams for each message list item.