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( params = MentionListItemParams( mention = mention, currentUser = currentUser, onClick = onItemClick, ), ) } }, loadingIndicator: @Composable BoxScope.() -> Unit = { with(ChatTheme.componentFactory) { MentionListLoadingIndicator(params = MentionListLoadingIndicatorParams()) } }, emptyContent: @Composable BoxScope.() -> Unit = { with(ChatTheme.componentFactory) { MentionListEmptyContent(params = MentionListEmptyContentParams()) } }, loadingItemContent: @Composable LazyItemScope.() -> Unit = { with(ChatTheme.componentFactory) { MentionListLoadingItem(params = MentionListLoadingItemParams()) } }, pullToRefreshIndicator: @Composable BoxScope.(pullToRefreshState: PullToRefreshState, isRefreshing: Boolean) -> Unit = { pullToRefreshState, isRefreshing -> if (pullToRefreshEnabled) { with(ChatTheme.componentFactory) { MentionListPullToRefreshIndicator( MentionListPullToRefreshIndicatorParams( 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( params = MentionListItemParams( mention = mention, currentUser = currentUser, onClick = onItemClick, ), ) } }, loadingIndicator: @Composable BoxScope.() -> Unit = { with(ChatTheme.componentFactory) { MentionListLoadingIndicator(params = MentionListLoadingIndicatorParams()) } }, emptyContent: @Composable BoxScope.() -> Unit = { with(ChatTheme.componentFactory) { MentionListEmptyContent(params = MentionListEmptyContentParams()) } }, loadingItemContent: @Composable LazyItemScope.() -> Unit = { with(ChatTheme.componentFactory) { MentionListLoadingItem(params = MentionListLoadingItemParams()) } }, pullToRefreshIndicator: @Composable BoxScope.(pullToRefreshState: PullToRefreshState, isRefreshing: Boolean) -> Unit = { pullToRefreshState, isRefreshing -> if (pullToRefreshEnabled) { with(ChatTheme.componentFactory) { MentionListPullToRefreshIndicator( params = MentionListPullToRefreshIndicatorParams( pullToRefreshState = pullToRefreshState, isRefreshing = isRefreshing, ), ) } } })

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