Message Lazy Column
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
message Paging Params
The MessagePagingParams to determine the pagination state.
messages
The list of messages to display.
message Item
The composable function to render each message item.
modifier
The modifier to be applied to the view.
lazy List State
The state of the lazy column.
load Next
The callback for when the messages to next (latest) direction need to be loaded.
load Previous
The callback for when the messages to previous (oldest) direction need to be loaded.
on Message Item Click
The callback for when a message item is clicked.
on Message Item Long Click
The callback for when a message item is long clicked.