Package-level declarations
Types
ViewModel class for ChannelHeaderView.
A ViewModel factory for MessageListViewModel, ChannelHeaderViewModel and MessageComposerViewModel.
ViewModel responsible for handling the composing and sending of messages.
A binder class responsible for binding the MessageComposerViewModel with the user interface components. It provides flexibility by allowing custom listeners for various message composer events.
View model class for MessageListView. Responsible for updating the list of messages. Can be bound to the view using MessageListViewModel.bindView function.
ViewModel for managing poll results state in XML UI components.
Functions
Binds ChannelHeaderView with ChannelHeaderViewModel, updating the view's state based on data provided by the ViewModel.
Binds MessageListView with MessageListViewModel, updating the view's state based on data provided by the ViewModel, and forwarding View events to the ViewModel.
Function which connects MessageComposerView to MessageComposerViewModel. As a result the view renders the state delivered by the ViewModel, and the ViewModel intercepts the user's actions automatically.
Function which connects MessageComposerView to MessageComposerViewModel. As a result the view renders the state delivered by the ViewModel, and the ViewModel intercepts the user's actions automatically. The main difference with bindView is that listeners in this function do not override the default behaviour.