-
public final class MentionListControllerController responsible for managing the state of the mention list.
-
-
Field Summary
Fields Modifier and Type Field Description private final StateFlow<MentionListState>stateprivate final SharedFlow<MentionListEvent>events
-
Constructor Summary
Constructors Constructor Description MentionListController(CoroutineScope scope, QuerySorter<Message> sort, ChatClient chatClient)
-
Method Summary
Modifier and Type Method Description final StateFlow<MentionListState>getState()The current state of the mention list. final SharedFlow<MentionListEvent>getEvents()One shot events triggered by the controller. final UnitloadMore()Loads more mentions if there are more to load. final Unitrefresh()Request to refresh the mention list. -
-
Constructor Detail
-
MentionListController
MentionListController(CoroutineScope scope, QuerySorter<Message> sort, ChatClient chatClient)
- Parameters:
scope- The CoroutineScope on which coroutines should be launched.sort- The sorting options for the messages.chatClient- The ChatClient instance to use for API calls.
-
-
Method Detail
-
getState
final StateFlow<MentionListState> getState()
The current state of the mention list.
-
getEvents
final SharedFlow<MentionListEvent> getEvents()
One shot events triggered by the controller.
-
-
-
-