ChannelListViewModel
constructor(chatClient: ChatClient, initialSort: QuerySorter<Channel>, initialFilters: FilterObject?, channelLimit: Int = DEFAULT_CHANNEL_LIMIT, memberLimit: Int = DEFAULT_MEMBER_LIMIT, messageLimit: Int = DEFAULT_MESSAGE_LIMIT, chatEventHandlerFactory: ChatEventHandlerFactory = ChatEventHandlerFactory(chatClient.clientState), searchDebounceMs: Long = SEARCH_DEBOUNCE_MS)
Parameters
chatClient
Used to connect to the API.
initialSort
The initial sort used for Channels.
initialFilters
The current data filter. Users can change this state using setFilters to impact which data is shown on the UI.
channelLimit
How many channels we fetch per page.
memberLimit
How many members are fetched for each channel item when loading channels.
messageLimit
How many messages are fetched for each channel item when loading channels.
chatEventHandlerFactory
The instance of ChatEventHandlerFactory used to create ChatEventHandler.
searchDebounceMs
The debounce time for search queries.