OtherMediaMessageItem

fun OtherMediaMessageItem(message: UikitFileMessage, modifier: Modifier = Modifier, onMessageClick: (UikitFileMessage) -> Unit = {}, onMessageLongClick: (UikitFileMessage) -> Unit = {}, mediaBackgroundColor: Color = if (SendbirdUikitCompose.isDarkTheme) { MaterialTheme.colorScheme.surfaceContainerHighest } else { MaterialTheme.colorScheme.surfaceBright }, messageGroupingPosition: MessageGroupingPosition = MessageGroupingPosition.Single)

A Composable to display the other user's UikitFileMessage item, which are image or videos, using the OtherMessageItem.

Since

1.0.0-beta.1

Parameters

message

The UikitFileMessage 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.

mediaBackgroundColor

The background color of the media message.

messageGroupingPosition

The position of the message in the message group.

See also