-
public final class ThreadsScreenKt
-
-
Method Summary
Modifier and Type Method Description final static UnitThreadsScreen(ThreadsViewModelFactory viewModelFactory, String title, Function0<Unit> onHeaderAvatarClick, Function1<Thread, Unit> onThreadClick)Default root Threads screen component, that provides the necessary ViewModel. -
-
Method Detail
-
ThreadsScreen
@Composable() final static Unit ThreadsScreen(ThreadsViewModelFactory viewModelFactory, String title, Function0<Unit> onHeaderAvatarClick, Function1<Thread, Unit> onThreadClick)
Default root Threads 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 ThreadListViewModel.title- Header title.onHeaderAvatarClick- Handle for when the user clicks on the header avatar.onThreadClick- Handler for Thread item clicks.
-
-
-
-