Package 

Class MentionListController


  • 
    public final class MentionListController
    
                        

    Controller responsible for managing the state of the mention list.

    • 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 Unit loadMore() Loads more mentions if there are more to load.
      final Unit refresh() Request to refresh the mention list.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.