ThreadListController

constructor(query: QueryThreadsRequest, chatClient: ChatClient = ChatClient.instance(), scope: CoroutineScope = chatClient.inheritScope { DispatcherProvider.IO }, queryThreadsAsState: () -> StateFlow<QueryThreadsState?> = { chatClient.queryThreadsAsState( request = query, coroutineScope = scope, ) })

Parameters

query

The QueryThreadsRequest object containing the parameters for querying threads.

chatClient

The ChatClient instance for retrieving the Threads related data.

scope

The CoroutineScope on which coroutines should be launched.

queryThreadsAsState

Function that returns a StateFlow of QueryThreadsState.