MentionListViewModel
class MentionListViewModel(sort: QuerySorter<Message>? = null, controllerProvider: ViewModel.() -> MentionListController = { MentionListController(viewModelScope, sort) }) : ViewModel
ViewModel class responsible for managing the MentionListState and actions of mention list.
Parameters
sort
The sorting options for the messages.
controllerProvider
The provider for MentionListController which handles the business logic of the mention list.
Constructors
Link copied to clipboard
constructor(sort: QuerySorter<Message>? = null, controllerProvider: ViewModel.() -> MentionListController = { MentionListController(viewModelScope, sort) })
Properties
Functions
Inherited functions
Link copied to clipboard
Link copied to clipboard
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