OtherMediaMessageItem

fun OtherMediaMessageItem(message: UikitFileMessage, modifier: Modifier = Modifier, onMessageClick: (UikitFileMessage) -> Unit = {}, onMessageLongClick: (UikitFileMessage) -> Unit = {}, onEmojiReactionClick: (UikitBaseMessage, String, Boolean) -> Unit = { _, _, _ -> }, onEmojiReactionLongClick: (UikitBaseMessage, UiKitReaction) -> Unit = { _, _ -> }, onEmojiReactionMoreButtonClick: (UikitBaseMessage) -> Unit = { }, mediaBackgroundColor: Color = if (SendbirdUikitCompose.isDarkTheme) { MaterialTheme.colorScheme.surfaceContainerHighest } else { MaterialTheme.colorScheme.surfaceBright }, messageGroupingPosition: MessageGroupingPosition = MessageGroupingPosition.Single, emojiReactionList: @Composable (message: UikitBaseMessage) -> Unit = { baseMessage -> EmojiReactionList( message = baseMessage, useMoreButton = true, onEmojiReactionClick = onEmojiReactionClick, onEmojiReactionLongClick = onEmojiReactionLongClick, onEmojiReactionMoreButtonClick = onEmojiReactionMoreButtonClick, ) })

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

Since

1.0.0

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.

onEmojiReactionClick

The handler for when the reaction is clicked.

onEmojiReactionLongClick

The handler for when the reaction is long clicked.

onEmojiReactionMoreButtonClick

The handler for when the emoji reaction more button is clicked.

mediaBackgroundColor

The background color of the media message.

messageGroupingPosition

The position of the message in the message group.

emojiReactionList

The Composable to display the emoji reaction list.

See also