ChannelViewModelFactory
constructor(chatClient: ChatClient = ChatClient.instance(), querySort: QuerySorter<Channel> = QuerySortByField.descByName("last_updated"), filters: FilterObject? = null, channelLimit: Int = ChannelListViewModel.DEFAULT_CHANNEL_LIMIT, memberLimit: Int = ChannelListViewModel.DEFAULT_MEMBER_LIMIT, messageLimit: Int = ChannelListViewModel.DEFAULT_MESSAGE_LIMIT, chatEventHandlerFactory: ChatEventHandlerFactory = ChatEventHandlerFactory(chatClient.clientState))
Parameters
chatClient
The client used to fetch data.
querySort
The sorting order for channels.
filters
The base filters used to filter out channels.
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.