Package-level declarations

Types

Link copied to clipboard
data class ChannelOptionItemVisibility(    val isViewInfoVisible: Boolean = true,     val isLeaveChannelVisible: Boolean = true,     val isMuteChannelVisible: 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 buildDefaultChannelOptionsState(selectedChannel: Channel, isMuted: Boolean, ownCapabilities: Set<String>): List<ChannelOptionState>

Builds the default list of channel options, based on the current user and the state of the channel.

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(options: List<ChannelOptionState>, onChannelOptionClick: (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,     readCount: Int = 0,     isReadIcon: @Composable () -> Unit = { IsReadCount(modifier = modifier, readCount = readCount) },     isPendingIcon: @Composable () -> Unit = { IsPendingIcon(modifier = modifier) },     isSentIcon: @Composable () -> Unit = { IsSentIcon(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.errorAccent)

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