Other Text Message Item
fun OtherTextMessageItem(message: UikitUserMessage, modifier: Modifier = Modifier, onMessageClick: (UikitUserMessage) -> Unit = {}, onMessageLongClick: (UikitUserMessage) -> Unit = {}, textBackgroundColor: Color = if (SendbirdUikitCompose.isDarkTheme) {
MaterialTheme.colorScheme.surfaceContainerHighest
} else {
MaterialTheme.colorScheme.surfaceBright
}, textStyle: TextStyle = MaterialTheme.typography.bodySmall, textColor: Color = MaterialTheme.colorScheme.onBackground, messageGroupingPosition: MessageGroupingPosition = MessageGroupingPosition.Single)
A Composable to display the other user's UikitUserMessage item using the OtherMessageItem.
Since
1.0.0-beta.1
Parameters
message
The UikitUserMessage to display.
modifier
The modifier to be applied to the view.
on Message Click
The handler for when the message is clicked.
on Message Long Click
The handler for when the message is long clicked.
text Background Color
The background color of the text message.
text Style
The style of the text message.
text Color
The color of the text message.
message Grouping Position
The position of the message in the message group.