Sending Status
fun SendingStatus(unreadMemberCount: Int, undeliveredMemberCount: Int, sendingStatus: SendingStatus, modifier: Modifier = Modifier, pending: @Composable () -> Unit = {
CircularProgressIndicator(
strokeWidth = 2.dp,
modifier = modifier
)
}, failed: @Composable () -> Unit = {
Icon(
painterResource(id = R.drawable.icon_error),
contentDescription = null,
tint = MaterialTheme.colorScheme.error,
modifier = modifier
)
}, succeeded: @Composable () -> Unit = {
Icon(
painterResource(id = R.drawable.icon_done_all),
contentDescription = null,
tint = MaterialTheme.colorScheme.secondary,
modifier = modifier
)
}, delivered: @Composable () -> Unit = {
Icon(
painterResource(id = R.drawable.icon_done),
contentDescription = null,
tint = MaterialTheme.colorScheme.onSurface,
modifier = modifier
)
}, read: @Composable () -> Unit = {
Icon(
painterResource(id = R.drawable.icon_done_all),
contentDescription = null,
tint = MaterialTheme.colorScheme.onSurface,
modifier = modifier
)
})
A Composable to display the unread/undelivered member counts with the sending status of the message.
Since
1.0.0-beta.1
Parameters
unread Member Count
The count of unread members of the message.
undelivered Member Count
The count of undelivered members of the message.
sending Status
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.