Package-level declarations

Types

Link copied to clipboard
data class ChannelOptionsVisibility(val isViewInfoVisible: Boolean = true, val isLeaveChannelVisible: Boolean = true, val isMuteChannelVisible: Boolean = true, val isMuteUserVisible: Boolean = true, val isArchiveChannelVisible: Boolean = false, val isPinChannelVisible: Boolean = false, val isDeleteChannelVisible: Boolean = true)

Controls option visibility in the channel options menu.

Functions

Link copied to clipboard
fun buildDefaultChannelActions(selectedChannel: Channel, isMuted: Boolean, ownCapabilities: Set<String>, viewModel: ChannelListViewModel, onViewInfoAction: (Channel) -> Unit): List<ChannelAction>

Builds the default list of channel actions, based on the current user permissions and channel state. Each action is self-describing and carries its icon, label, and execution handler.

Link copied to clipboard
fun ChannelMembers(members: List<Member>, modifier: Modifier = Modifier, currentUser: User? = null)

Represents a list of members in the channel.

Link copied to clipboard
fun ChannelOptions(actions: List<ChannelAction>, onChannelOptionConfirm: (ChannelAction) -> Unit, modifier: Modifier = Modifier)

This is the default bottom drawer UI that shows up when the user long taps on a channel item.

Link copied to clipboard
fun MessageReadStatusIcon(channel: Channel, message: Message, currentUser: User?, modifier: Modifier = Modifier)
fun MessageReadStatusIcon(message: Message, isMessageRead: Boolean, modifier: Modifier = Modifier, isMessageDelivered: Boolean = false, isReadIcon: @Composable () -> Unit = { IsReadIcon(modifier = modifier) }, isPendingIcon: @Composable () -> Unit = { IsPendingIcon(modifier = modifier) }, isSentIcon: @Composable () -> Unit = { IsSentIcon(modifier = modifier) }, isDeliveredIcon: @Composable () -> Unit = { IsDeliveredIcon(modifier = modifier) })

Shows a delivery status indicator for a particular message.

Link copied to clipboard
fun UnreadCountIndicator(unreadCount: Int, modifier: Modifier = Modifier, color: Color = ChatTheme.colors.accentPrimary)

Shows the unread count badge for each channel item, to showcase how many messages the user didn't read.