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...

Constructors

Link copied to clipboard
constructor(clientState: ClientState = ChatClient.instance().clientState)

Properties

Link copied to clipboard

The state of the connection for the user currently logged in.

Link copied to clipboard

The user who is currently logged in.

Inherited functions

Link copied to clipboard
Link copied to clipboard

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.