MyFileMessageItem

fun MyFileMessageItem(message: UikitFileMessage, modifier: Modifier = Modifier, onMessageClick: (UikitFileMessage) -> Unit = {}, onMessageLongClick: (UikitFileMessage) -> Unit = {}, fileBackgroundColor: Color = MaterialTheme.colorScheme.primary, 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.background.copy(alpha = SendbirdOpacity.HighOpacity) ) })

A Composable to display the current user's UikitFileMessage item other than images or videos using the MyMessageItem.

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