ChannelListViewModel
Creates a view model that queries channels by an explicit filter and sort.
Parameters
The prepared ChatClient instance required for fetching the data.
The initial sort used for Channels. Can be changed at runtime via setQuerySort.
The data filter. When null, a default filter scoped to "messaging" channels the current user is a member of is used. Can be changed at runtime via setFilters.
How many channels we fetch per page.
How many members are fetched for each channel item when loading channels. When null, the server-side default is used.
How many messages are fetched for each channel item when loading channels. When null, the server-side default is used.
The instance of ChatEventHandlerFactory used to create ChatEventHandler.
The debounce time for search queries.
If the draft message feature is enabled.
Sorting for message search results. When null, the server-side default is used.
A flow emitting the current GlobalState.
Creates a view model that queries channels using a predefined filter resolved by the server.
The filter and sort are identified by predefinedFilterName and resolved server-side; filterValues and sortValues interpolate into the predefined template. setFilters and setQuerySort do not affect a view model created this way.
Parameters
The prepared ChatClient instance required for fetching the data.
The name of the predefined filter registered on the backend.
Optional values interpolated into the predefined filter template.
Optional values interpolated into the predefined sort template.
How many channels we fetch per page.
How many members are fetched for each channel item when loading channels. When null, the server-side default is used.
How many messages are fetched for each channel item when loading channels. When null, the server-side default is used.
The instance of ChatEventHandlerFactory used to create ChatEventHandler.
The debounce time for search queries.
If the draft message feature is enabled.
Sorting for message search results. When null, the server-side default is used.
A flow emitting the current GlobalState.
Grouped channel list constructor. Subscribes to the state identified by groupKey without issuing a remote call; the state is populated externally by queryGroupedChannels responses.
IMPORTANT: This is an enterprise feature and is disabled by default. For more info, reach out to our Contact & Support.
Parameters
The name of the channels group.
The prepared ChatClient instance required for fetching the data.
The debounce time for search queries.
If the draft message feature is enabled.
Sorting for message search results. When null, the server-side default is used.
A flow emitting the current GlobalState.