MentionListViewModel

class MentionListViewModel(chatClient: ChatClient = ChatClient.instance()) : ViewModel

Constructors

Link copied to clipboard
constructor(chatClient: ChatClient = ChatClient.instance())

Types

Link copied to clipboard
data class State(val canLoadMore: Boolean, val results: List<MessageResult>, val isLoading: Boolean)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun loadMore()

Inherited functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
@JvmName(name = "bind")
fun MentionListViewModel.bindView(view: MentionListView, lifecycleOwner: LifecycleOwner)

Binds MentionListView with MentionListViewModel, updating the view's state based on data provided by the ViewModel and propagating view events to the ViewModel as needed.

Link copied to clipboard