MyTextMessageItem

fun MyTextMessageItem(message: UikitUserMessage, modifier: Modifier = Modifier, onMessageClick: (UikitUserMessage) -> Unit = {}, onMessageLongClick: (UikitUserMessage) -> Unit = {}, textBackgroundColor: Color = MaterialTheme.colorScheme.primary, textStyle: TextStyle = MaterialTheme.typography.bodySmall, textColor: Color = MaterialTheme.colorScheme.background.copy(alpha = SendbirdOpacity.HighOpacity), messageGroupingPosition: MessageGroupingPosition = MessageGroupingPosition.Single)

A Composable to display the current user's UikitUserMessage item using the MyMessageItem.

Since

1.0.0

Parameters

message

The UikitUserMessage to display.

modifier

The modifier to be applied to the view.

onMessageClick

The handler for when the message is clicked.

onMessageLongClick

The handler for when the message is long clicked.

textBackgroundColor

The background color of the text message.

textStyle

The style of the text message.

textColor

The color of the text message.

messageGroupingPosition

The position of the message in the message group.

See also