Package 

Class CallViewBindingKt

    • Method Detail

      • bindView

         final static Unit bindView(CallView $self, CallViewModel viewModel, LifecycleOwner lifecycleOwner, Function2<CallDeviceState, Boolean, List<CallControlItem>> fetchCallMediaState)

        Binds CallView with CallViewModel, updating the view's state based on data provided by the ViewModel, and propagating view events to the ViewModel as needed.

        This function sets listeners on the view and ViewModel. Call this method before setting any additional listeners on these objects yourself.

        Parameters:
        viewModel - CallViewModel for observing data and running actions.
        lifecycleOwner - The lifecycle owner, root component containing CallView.
        fetchCallMediaState - Handler used to fetch the new state of the call controls buttons when the media state changes.