ThreadListController

class ThreadListController(threadLimit: Int, threadReplyLimit: Int, threadParticipantLimit: Int, chatClient: ChatClient = ChatClient.instance())

Controller responsible for managing the Threads list state. It serves as a central place for the state management and business logic related to the Threads list.

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 for retrieving the Threads related data.

Constructors

Link copied to clipboard
constructor(threadLimit: Int, threadReplyLimit: Int, threadParticipantLimit: Int, chatClient: ChatClient = ChatClient.instance())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val state: StateFlow<ThreadListState>

Functions

Link copied to clipboard
fun load()

Force loads the first page of threads.

Link copied to clipboard

Loads the next page of threads (if possible).