Other Media Message Item
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
Parameters
message
The UikitFileMessage 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.
media Background Color
The background color of the media message.
message Grouping Position
The position of the message in the message group.