ChannelListViewModel
constructor(filter: FilterObject? = null, sort: QuerySorter<Channel> = DEFAULT_SORT, limit: Int = 30, messageLimit: Int = 1, memberLimit: Int = 30, chatEventHandlerFactory: ChatEventHandlerFactory = ChatEventHandlerFactory(), chatClient: ChatClient = ChatClient.instance(), globalState: GlobalState = chatClient.globalState)
Parameters
filter
Filter for querying channels, should never be empty.
sort
Defines the ordering of the channels.
limit
The maximum number of channels to fetch.
messageLimit
The number of messages to fetch for each channel.
memberLimit
The number of members to fetch per channel.
chatEventHandlerFactory
The instance of ChatEventHandlerFactory that will be used to create ChatEventHandler.
chatClient
Entry point for all low-level operations.
globalState
Global state of OfflinePlugin. Contains information such as the current user, connection state, unread counts etc.