ChannelListHeader
A clean, decoupled UI element that doesn't rely on ViewModels or our custom architecture setup. This allows the user to fully govern how the ChannelListHeader behaves, by passing in all the data that's required to display it and drive its actions.
Parameters
Modifier for styling.
The title to display, when the network is available.
The currently logged in user, to load its image in the avatar.
The state of WS connection used to switch between the title and the network loading view.
The color of the header.
The shape of the header.
The elevation of the header.
Action handler when the user taps on an avatar.
Action handler when the user taps on the header action.
Custom composable that allows the user to replace the default header leading content. By default it shows a UserAvatar.
Custom composable that allows the user to replace the default header center content. By default it either shows a text with title or connectionState.
Custom composable that allows the user to replace the default leading content. By default it shows an action icon.