-
public final class ChannelsScreenKt
-
-
Method Summary
Modifier and Type Method Description final static UnitChannelsScreen(ChannelListViewModelFactory viewModelFactory, String viewModelKey, String title, Boolean isShowingHeader, SearchMode searchMode, Function0<Unit> onHeaderActionClick, Function0<Unit> onHeaderAvatarClick, Function0<Unit> onStartChatClick, Function1<Channel, Unit> onChannelClick, Function1<Message, Unit> onSearchMessageItemClick, Function1<Channel, Unit> onViewChannelInfoAction, Function0<Unit> onBackPressed, Boolean isBackPressEnabled)Default root Channel screen component, that provides the necessary ViewModel. -
-
Method Detail
-
ChannelsScreen
@Composable() final static Unit ChannelsScreen(ChannelListViewModelFactory viewModelFactory, String viewModelKey, String title, Boolean isShowingHeader, SearchMode searchMode, Function0<Unit> onHeaderActionClick, Function0<Unit> onHeaderAvatarClick, Function0<Unit> onStartChatClick, Function1<Channel, Unit> onChannelClick, Function1<Message, Unit> onSearchMessageItemClick, Function1<Channel, Unit> onViewChannelInfoAction, Function0<Unit> onBackPressed, Boolean isBackPressEnabled)
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.viewModelKey- Key to differentiate between instances of ChannelListViewModel.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.onStartChatClick- Handler for the "Start a chat" button in the empty state.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.isBackPressEnabled- Indicator if the default back handler is enabled.
-
-
-
-