Class MessageListViewModelBinding
-
- All Implemented Interfaces:
public final class MessageListViewModelBinding
-
-
Method Summary
Modifier and Type Method Description final static Unitbind(MessageListViewModel $self, MessageListView view, LifecycleOwner lifecycleOwner)Binds MessageListView with MessageListViewModel, updating the view's state based on data provided by the ViewModel, and forwarding View events to the ViewModel. -
-
Method Detail
-
bind
final static Unit bind(MessageListViewModel $self, MessageListView view, LifecycleOwner lifecycleOwner)
Binds MessageListView with MessageListViewModel, updating the view's state based on data provided by the ViewModel, and forwarding View events to the ViewModel.
This function sets listeners on the view and ViewModel. Call this method before setting any additional listeners on these objects yourself.
- Parameters:
view- The MessageListView to bind the ViewModel to.lifecycleOwner- Current owner of the lifecycle in which the events are handled.
-
-
-
-