ScrollToFirstUnreadButtonParams

data class ScrollToFirstUnreadButtonParams(val visible: Boolean, val unreadCount: Int, val onClick: () -> Unit, val onDismiss: () -> Unit, val modifier: Modifier = Modifier)

Parameters for ChatComponentFactory.ScrollToFirstUnreadButton.

Parameters

visible

Whether the pill is visible.

unreadCount

The number of unread messages to display in the pill label.

onClick

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

onDismiss

Action invoked when the close (X) affordance is clicked. Implementations should hide the pill without scrolling.

modifier

Modifier for styling.

Constructors

Link copied to clipboard
constructor(visible: Boolean, unreadCount: Int, onClick: () -> Unit, onDismiss: () -> Unit, modifier: Modifier = Modifier)

Properties

Link copied to clipboard
Link copied to clipboard
val onClick: () -> Unit
Link copied to clipboard
val onDismiss: () -> Unit
Link copied to clipboard
Link copied to clipboard