ChannelsScreen

fun ChannelsScreen(viewModelFactory: ChannelViewModelFactory = ChannelViewModelFactory(), title: String = "Stream Chat", isShowingHeader: Boolean = true, searchMode: SearchMode = SearchMode.None, onHeaderActionClick: () -> Unit = {}, onHeaderAvatarClick: () -> Unit = {}, onChannelClick: (Channel) -> Unit = {}, onSearchMessageItemClick: (Message) -> Unit = {}, onViewChannelInfoAction: (Channel) -> Unit = {}, onBackPressed: () -> Unit = {})

Default root Channel screen component, that provides the necessary ViewModel.

It can be used without most parameters for default behavior, that can be tweaked if necessary.

Parameters

viewModelFactory

The factory used to build the ViewModels and power the behavior. You can use the default implementation by not passing in an instance yourself, or you can customize the behavior using its parameters.

title

Header title.

isShowingHeader

If we show the header or hide it.

searchMode

The search mode for the screen.

onHeaderActionClick

Handler for the default header action.

onHeaderAvatarClick

Handle for when the user clicks on the header avatar.

onChannelClick

Handler for Channel item clicks.

onViewChannelInfoAction

Handler for when the user selects the ViewInfo option for a Channel.

onBackPressed

Handler for back press action.