Package-level declarations

Functions

Link copied to clipboard
fun MentionList(viewModel: MentionListViewModel, modifier: Modifier = Modifier, currentUser: User? = ChatClient.instance().getCurrentUser(), onItemClick: (message: Message) -> Unit? = null, onEvent: (event: Any) -> Unit = {}, pullToRefreshEnabled: Boolean = true, itemContent: @Composable LazyItemScope.(MessageResult) -> Unit = { mention -> with(ChatTheme.componentFactory) { MentionListItem( mention = mention, modifier = Modifier, currentUser = currentUser, onClick = onItemClick, ) } }, loadingIndicator: @Composable BoxScope.() -> Unit = { with(ChatTheme.componentFactory) { MentionListLoadingIndicator( modifier = Modifier, ) } }, emptyContent: @Composable BoxScope.() -> Unit = { with(ChatTheme.componentFactory) { MentionListEmptyContent( modifier = Modifier, ) } }, loadingItemContent: @Composable LazyItemScope.() -> Unit = { with(ChatTheme.componentFactory) { MentionListLoadingItem( modifier = Modifier, ) } }, pullToRefreshIndicator: @Composable BoxScope.(pullToRefreshState: PullToRefreshState, isRefreshing: Boolean) -> Unit = { pullToRefreshState, isRefreshing -> if (pullToRefreshEnabled) { with(ChatTheme.componentFactory) { MentionListPullToRefreshIndicator( modifier = Modifier, pullToRefreshState = pullToRefreshState, isRefreshing = isRefreshing, ) } } })

The default stateful component that is bound to MentionListViewModel to display a list of mentions for the current user.

fun MentionList(state: MentionListState, modifier: Modifier = Modifier, currentUser: User? = ChatClient.instance().getCurrentUser(), onItemClick: (message: Message) -> Unit? = null, onLoadMore: () -> Unit = {}, pullToRefreshEnabled: Boolean = true, onRefresh: () -> Unit = {}, itemContent: @Composable LazyItemScope.(MessageResult) -> Unit = { mention -> with(ChatTheme.componentFactory) { MentionListItem( mention = mention, modifier = Modifier, currentUser = currentUser, onClick = onItemClick, ) } }, loadingIndicator: @Composable BoxScope.() -> Unit = { with(ChatTheme.componentFactory) { MentionListLoadingIndicator( modifier = Modifier, ) } }, emptyContent: @Composable BoxScope.() -> Unit = { with(ChatTheme.componentFactory) { MentionListEmptyContent( modifier = Modifier, ) } }, loadingItemContent: @Composable LazyItemScope.() -> Unit = { with(ChatTheme.componentFactory) { MentionListLoadingItem( modifier = Modifier, ) } }, pullToRefreshIndicator: @Composable BoxScope.(pullToRefreshState: PullToRefreshState, isRefreshing: Boolean) -> Unit = { pullToRefreshState, isRefreshing -> if (pullToRefreshEnabled) { with(ChatTheme.componentFactory) { MentionListPullToRefreshIndicator( modifier = Modifier, pullToRefreshState = pullToRefreshState, isRefreshing = isRefreshing, ) } } })

The default stateless component that displays a list of mentions for the current user.