Package 

Class MessageListViewModelBinding

    • Method Summary

      Modifier and Type Method Description
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.