MyMessageItem

fun MyMessageItem(message: UikitBaseMessage, modifier: Modifier = Modifier, messageGroupingPosition: MessageGroupingPosition = MessageGroupingPosition.Single, sendingStatus: @Composable () -> Unit = { SendingStatus( unreadMemberCount = message.unreadMemberCount, undeliveredMemberCount = message.undeliveredMemberCount, sendingStatus = message.sendingStatus, modifier = Modifier.size(16.dp) ) }, sentAt: @Composable () -> Unit = { Text( text = message.sentAt(), color = MaterialTheme.colorScheme.onBackground.copy(SendbirdOpacity.LowOpacity), style = MaterialTheme.typography.labelSmall ) }, content: @Composable (UikitBaseMessage) -> Unit)

A Composable to display the current user's message item. This is a base Composable with common Composables, such as UikitBaseMessage.sendingStatus and UikitBaseMessage.sentAt with content slot open to be used in customizing for each type of messages.

Since

1.0.0-beta.1

Parameters

message

The UikitBaseMessage to display.

modifier

The modifier to be applied to the view.

messageGroupingPosition

The position of the message in the message group.

sendingStatus

The Composable to display the sending status of the message.

sentAt

The Composable to display the sentAt of the message.

content

The custom content to display.