OtherFileMessageItem

fun OtherFileMessageItem(message: UikitFileMessage, modifier: Modifier = Modifier, onMessageClick: (UikitFileMessage) -> Unit = {}, onMessageLongClick: (UikitFileMessage) -> Unit = {}, fileBackgroundColor: Color = if (SendbirdUikitCompose.isDarkTheme) { MaterialTheme.colorScheme.surfaceContainerHighest } else { MaterialTheme.colorScheme.surfaceBright }, messageGroupingPosition: MessageGroupingPosition = MessageGroupingPosition.Single, fileIcon: @Composable () -> Unit = { Icon( painter = message.fileIcon(), contentDescription = null, modifier = Modifier .size(28.dp) .clip(MaterialTheme.shapes.small), tint = Color.Unspecified ) }, fileName: @Composable () -> Unit = { Text( text = message.fileName(), modifier = Modifier, style = MaterialTheme.typography.bodySmall, color = MaterialTheme.colorScheme.onBackground ) })

A Composable to display the other user's UikitFileMessage item other than images 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.

fileBackgroundColor

The background color of the file message.

messageGroupingPosition

The position of the message in the message group.

fileIcon

The Composable to display the file icon.

fileName

The Composable to display the file name.

See also