ChannelMenuParams

data class ChannelMenuParams(val selectedChannel: Channel, val currentUser: User?, val channelActions: List<ChannelAction>, val onChannelOptionConfirm: (ChannelAction) -> Unit, val onDismiss: () -> Unit, val modifier: Modifier = Modifier)

Parameters for ChatComponentFactory.ChannelMenu.

Parameters

selectedChannel

The selected channel.

currentUser

The currently logged in user.

channelActions

The list of channel actions.

onChannelOptionConfirm

Action invoked when a channel option is confirmed.

onDismiss

Action invoked when the menu is dismissed.

modifier

Modifier for styling.

Constructors

Link copied to clipboard
constructor(selectedChannel: Channel, currentUser: User?, channelActions: List<ChannelAction>, onChannelOptionConfirm: (ChannelAction) -> Unit, onDismiss: () -> Unit, modifier: Modifier = Modifier)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val onDismiss: () -> Unit
Link copied to clipboard