Package 

Class ThreadsViewModelFactory

    • Method Summary

      Modifier and Type Method Description
      <T extends ViewModel> T create(Class<T> modelClass)
      • Methods inherited from class io.getstream.chat.android.compose.viewmodel.threads.ThreadsViewModelFactory

        create, create
      • Methods inherited from class java.lang.Object

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

      • ThreadsViewModelFactory

        ThreadsViewModelFactory(Integer threadLimit, Integer threadReplyLimit, Integer threadParticipantLimit, ChatClient chatClient)
        Creates a factory instance with the specified parameters.
        Parameters:
        threadLimit - The number of threads to load per page.
        threadReplyLimit - The number of replies per thread to load.
        threadParticipantLimit - The number of participants per thread to load.
        chatClient - The ChatClient instance to use for loading threads.
      • ThreadsViewModelFactory

        ThreadsViewModelFactory(QueryThreadsRequest query, ChatClient chatClient)
        Parameters:
        query - The QueryThreadsRequest used to load threads.
        chatClient - The ChatClient instance to use for loading threads.