ChannelHeaderParams
data class ChannelHeaderParams(val channel: Channel, val connectionState: ConnectionState, val modifier: Modifier = Modifier, val currentUser: User? = null, val typingUsers: List<User> = emptyList(), val messageMode: MessageMode = MessageMode.Normal, val onBackPressed: () -> Unit = {}, val onHeaderTitleClick: (Channel) -> Unit? = null, val onChannelAvatarClick: (Channel) -> Unit? = null)
Parameters for ChatComponentFactory.ChannelHeader.
Parameters
channel
The channel to display header for.
connectionState
The current connection state.
modifier
Modifier for styling.
currentUser
The currently logged in user.
typingUsers
The list of users currently typing.
messageMode
The current message mode.
onBackPressed
Action invoked when the back button is pressed.
onHeaderTitleClick
Action invoked when the header title is clicked.
onChannelAvatarClick
Action invoked when the channel avatar is clicked.
Constructors
Link copied to clipboard
constructor(channel: Channel, connectionState: ConnectionState, modifier: Modifier = Modifier, currentUser: User? = null, typingUsers: List<User> = emptyList(), messageMode: MessageMode = MessageMode.Normal, onBackPressed: () -> Unit = {}, onHeaderTitleClick: (Channel) -> Unit? = null, onChannelAvatarClick: (Channel) -> Unit? = null)