MessageLazyColumn

fun MessageLazyColumn(messagePagingParams: MessagePagingParams, messages: List<UikitBaseMessage>, messageItem: @Composable (prevMessage: UikitBaseMessage?, message: UikitBaseMessage, nextMessage: UikitBaseMessage?, onMessageClick: (UikitBaseMessage) -> Unit, onMessageLongClick: (UikitBaseMessage) -> Unit) -> Unit, modifier: Modifier = Modifier, lazyListState: LazyListState = rememberLazyListState(), loadNext: () -> Unit = { }, loadPrevious: () -> Unit = { }, onMessageItemClick: (UikitBaseMessage) -> Unit = { }, onMessageItemLongClick: (UikitBaseMessage) -> Unit = { })

Represents the lazy column for messages with pagination.

Since

1.0.0

Parameters

messagePagingParams

The MessagePagingParams to determine the pagination state.

messages

The list of messages to display.

messageItem

The composable function to render each message item.

modifier

The modifier to be applied to the view.

lazyListState

The state of the lazy column.

loadNext

The callback for when the messages to next (latest) direction need to be loaded.

loadPrevious

The callback for when the messages to previous (oldest) direction need to be loaded.

onMessageItemClick

The callback for when a message item is clicked.

onMessageItemLongClick

The callback for when a message item is long clicked.