bindView

Binds ChannelListHeaderView with ChannelListHeaderViewModel, 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.


@JvmName(name = "bind")
fun ChannelListViewModel.bindView(view: ChannelListView, lifecycleOwner: LifecycleOwner)

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.

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