ChannelListHeaderViewModel
class ChannelListHeaderViewModel @JvmOverloads constructor(clientState: ClientState = ChatClient.instance().clientState) : ViewModel
ViewModel class for ChannelListHeaderView. Responsible for updating current user information. Can be bound to the view using ChannelListHeaderViewModel.bindView function.
Parameters
clientState
Client state of SDK that contains information such as the current user and connection state. such as the current user, connection state...
Properties
Inherited functions
Link copied to clipboard
Link copied to clipboard
fun ChannelListHeaderViewModel.bindView(view: ChannelListHeaderView, lifecycleOwner: LifecycleOwner)
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.
Link copied to clipboard