ChannelListViewModel
ViewModel class for ChannelListView. Responsible for keeping the channels list up to date. Can be bound to the view using ChannelListViewModel.bindView function.
Parameters
Filter for querying channels, should never be empty.
Defines the ordering of the channels.
The maximum number of channels to fetch.
The number of messages to fetch for each channel.
The number of members to fetch per channel.
The instance of ChatEventHandlerFactory that will be used to create ChatEventHandler.
Entry point for all low-level operations.
Global state of OfflinePlugin. Contains information such as the current user, connection state, unread counts etc.
Constructors
Types
Properties
Emits error events.
Represents the current pagination state by containing information about the loading state and if we have reached the end of all available channels.
Represents the current state containing channel list information.
Updates about currently typing users in active channels.
Functions
Deletes a channel.
Hides the given channel.
Removes the current user from the channel.
Marks all of the channels as read.
Checks against available actions and creates side-effects accordingly.
Allows us to change the filter based on our requirements.
Inherited functions
Binds ChannelListView with ChannelListViewModel, updating the view's state based on data provided by the ViewModel, and propagating view events to the ViewModel as needed.