-
public final class MentionListKt
-
-
Method Summary
Modifier and Type Method Description final static UnitMentionList(MentionListViewModel viewModel, Modifier modifier, User currentUser, Function1<Message, Unit> onItemClick, Function1<Object, Unit> onEvent, Boolean pullToRefreshEnabled, Function2<LazyItemScope, MessageResult, Unit> itemContent, Function1<BoxScope, Unit> loadingIndicator, Function1<BoxScope, Unit> emptyContent, Function1<LazyItemScope, Unit> loadingItemContent, Function3<BoxScope, PullToRefreshState, Boolean, Unit> pullToRefreshIndicator)The default stateful component that is bound to MentionListViewModel to display a list of mentions for the current user. final static UnitMentionList(MentionListState state, Modifier modifier, User currentUser, Function1<Message, Unit> onItemClick, Function0<Unit> onLoadMore, Boolean pullToRefreshEnabled, Function0<Unit> onRefresh, Function2<LazyItemScope, MessageResult, Unit> itemContent, Function1<BoxScope, Unit> loadingIndicator, Function1<BoxScope, Unit> emptyContent, Function1<LazyItemScope, Unit> loadingItemContent, Function3<BoxScope, PullToRefreshState, Boolean, Unit> pullToRefreshIndicator)The default stateless component that displays a list of mentions for the current user. -
-
Method Detail
-
MentionList
final static Unit MentionList(MentionListViewModel viewModel, Modifier modifier, User currentUser, Function1<Message, Unit> onItemClick, Function1<Object, Unit> onEvent, Boolean pullToRefreshEnabled, Function2<LazyItemScope, MessageResult, Unit> itemContent, Function1<BoxScope, Unit> loadingIndicator, Function1<BoxScope, Unit> emptyContent, Function1<LazyItemScope, Unit> loadingItemContent, Function3<BoxScope, PullToRefreshState, Boolean, Unit> pullToRefreshIndicator)
The default stateful component that is bound to MentionListViewModel to display a list of mentions for the current user.
- Parameters:
viewModel- The MentionListViewModel instance to use.modifier- The modifier to apply to this layout.currentUser- The current user to use for the mentions.onItemClick- The callback to be called when an item is clicked.onEvent- The callback to be called when an MentionListEvent is received from the viewModel.pullToRefreshEnabled- If true, the pull-to-refresh functionality is enabled.itemContent- The content displayed by a single item.loadingIndicator- The content displayed during the initial loading.emptyContent- The content displayed when the list is empty.loadingItemContent- The content displayed when loading more items.pullToRefreshIndicator- The custom indicator to be displayed during the pull-to-refresh action.
-
MentionList
final static Unit MentionList(MentionListState state, Modifier modifier, User currentUser, Function1<Message, Unit> onItemClick, Function0<Unit> onLoadMore, Boolean pullToRefreshEnabled, Function0<Unit> onRefresh, Function2<LazyItemScope, MessageResult, Unit> itemContent, Function1<BoxScope, Unit> loadingIndicator, Function1<BoxScope, Unit> emptyContent, Function1<LazyItemScope, Unit> loadingItemContent, Function3<BoxScope, PullToRefreshState, Boolean, Unit> pullToRefreshIndicator)
The default stateless component that displays a list of mentions for the current user.
This component is useful when you want to manage the state of the list yourself.
- Parameters:
state- The state of the list to display.modifier- The modifier to apply to this layout.currentUser- The current user to use for the mentions.onItemClick- The callback to be called when an item is clicked.onLoadMore- The callback to be called when more items should be loaded.pullToRefreshEnabled- If true, the pull-to-refresh functionality is enabled.onRefresh- The callback to be invoked when the user performs a pull-to-refresh action.itemContent- The content displayed by a single item.loadingIndicator- The content displayed during the initial loading.emptyContent- The content displayed when the list is empty.loadingItemContent- The content displayed when loading more items.pullToRefreshIndicator- The custom indicator to be displayed during the pull-to-refresh action.
-
-
-
-