Package 

Class MentionListViewModel


  • 
    public final class MentionListViewModel
    extends ViewModel
                        

    ViewModel class responsible for managing the MentionListState and actions of mention list.

    • Constructor Summary

      Constructors 
      Constructor Description
      MentionListViewModel(QuerySorter<Message> sort, Function1<ViewModel, MentionListController> controllerProvider)
    • Method Summary

      Modifier and Type Method Description
      final LiveData<MentionListState> getState() The current mention list state.
      final LiveData<Event<Unit>> getErrorEvents() One shot error events.
      final Unit loadMore() Loads more mentions if there are more to load.
      • Methods inherited from class io.getstream.chat.android.ui.viewmodel.mentions.MentionListViewModel

        addCloseable, addCloseable, addCloseable, getCloseable
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MentionListViewModel

        MentionListViewModel(QuerySorter<Message> sort, Function1<ViewModel, MentionListController> controllerProvider)
        Parameters:
        sort - The sorting options for the messages.
        controllerProvider - The provider for MentionListController which handles the business logic of the mention list.