MessageListHelperContentParams

data class MessageListHelperContentParams(val messageListState: MessageListState, val messagesLazyListState: MessagesLazyListState, val contentPadding: PaddingValues, val onScrollToBottomClick: (() -> Unit) -> Unit, val onScrollToFirstUnreadClick: () -> Unit = {}, val onDismissUnreadLabel: () -> Unit = {})

Parameters for ChatComponentFactory.MessageListHelperContent.

Parameters

messageListState

The current state of the message list.

messagesLazyListState

The lazy list state for scrolling.

contentPadding

The content padding of the message list.

onScrollToBottomClick

Action invoked when the scroll to bottom button is clicked.

onScrollToFirstUnreadClick

Action invoked when the scroll-to-first-unread pill body is clicked. Implementations should scroll the list to the unread boundary.

onDismissUnreadLabel

Action invoked when the close affordance on the scroll-to-first-unread pill is clicked. Implementations should hide the pill without scrolling.

Constructors

Link copied to clipboard
constructor(messageListState: MessageListState, messagesLazyListState: MessagesLazyListState, contentPadding: PaddingValues, onScrollToBottomClick: (() -> Unit) -> Unit, onScrollToFirstUnreadClick: () -> Unit = {}, onDismissUnreadLabel: () -> Unit = {})

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard