-
public final class ThreadListKt
-
-
Method Summary
Modifier and Type Method Description final static UnitThreadList(ThreadListViewModel viewModel, Modifier modifier, User currentUser, Function0<Unit> onBannerClick, Function1<Thread, Unit> onThreadClick, Function0<Unit> onLoadMore)Composable rendering a paginated list of threads. final static UnitThreadList(ThreadListState state, Modifier modifier, User currentUser, Function0<Unit> onBannerClick, Function1<Thread, Unit> onThreadClick, Function0<Unit> onLoadMore)Composable rendering a paginated list of threads. -
-
Method Detail
-
ThreadList
@Composable() final static Unit ThreadList(ThreadListViewModel viewModel, Modifier modifier, User currentUser, Function0<Unit> onBannerClick, Function1<Thread, Unit> onThreadClick, Function0<Unit> onLoadMore)
Composable rendering a paginated list of threads. Optionally, it renders a banner informing about new threads/thread messages outside of the loaded pages of threads.
- Parameters:
viewModel- The ThreadListViewModel handling the loading of the threads.modifier- Modifier instance for general styling.currentUser- The currently logged User, used for formatting the message in the thread preview.onBannerClick- Action invoked when the user clicks on the banner.onThreadClick- Action invoked when the usr clicks on a thread item in the list.onLoadMore- Action invoked when the current thread page was scrolled to the end, and a next page should be loaded.
-
ThreadList
@Composable() final static Unit ThreadList(ThreadListState state, Modifier modifier, User currentUser, Function0<Unit> onBannerClick, Function1<Thread, Unit> onThreadClick, Function0<Unit> onLoadMore)
Composable rendering a paginated list of threads. Optionally, it renders a banner informing about new threads/thread messages outside of the loaded pages of threads.
- Parameters:
state- The ThreadListState holding the current thread list state.modifier- Modifier instance for general styling.currentUser- The currently logged User, used for formatting the message in the thread preview.onBannerClick- Action invoked when the user clicks on the banner.onThreadClick- Action invoked when the usr clicks on a thread item in the list.onLoadMore- Action invoked when the current thread page was scrolled to the end, and a next page should be loaded.
-
-
-
-