SendingStatus

fun SendingStatus(unreadMemberCount: Int, undeliveredMemberCount: Int, sendingStatus: SendingStatus, modifier: Modifier = Modifier, pending: @Composable () -> Unit = { CircularProgressIndicator( strokeWidth = 2.dp, modifier = modifier.semantics { contentDescription = SemanticContentDescription.PENDING } ) }, failed: @Composable () -> Unit = { Icon( painterResource(id = R.drawable.icon_error), contentDescription = null, tint = MaterialTheme.colorScheme.error, modifier = modifier.semantics { contentDescription = SemanticContentDescription.FAILED } ) }, succeeded: @Composable () -> Unit = { Icon( painterResource(id = R.drawable.icon_done_all), contentDescription = null, tint = MaterialTheme.colorScheme.secondary, modifier = modifier.semantics { contentDescription = SemanticContentDescription.SUCCEEDED } ) }, delivered: @Composable () -> Unit = { Icon( painterResource(id = R.drawable.icon_done), contentDescription = null, tint = MaterialTheme.colorScheme.onSurface, modifier = modifier.semantics { contentDescription = SemanticContentDescription.DELIVERED } ) }, read: @Composable () -> Unit = { Icon( painterResource(id = R.drawable.icon_done_all), contentDescription = null, tint = MaterialTheme.colorScheme.onSurface, modifier = modifier.semantics { contentDescription = SemanticContentDescription.READ } ) })

A Composable to display the unread/undelivered member counts with the sending status of the message.

Since

1.0.0

Parameters

unreadMemberCount

The count of unread members of the message.

undeliveredMemberCount

The count of undelivered members of the message.

sendingStatus

The SendingStatus of the message.

modifier

The modifier to be applied to the view.

pending

The Composable to display the pending status.

failed

The Composable to display the failed status.

succeeded

The Composable to display the succeeded status.

delivered

The Composable to display the delivered status.

read

The Composable to display the read status.