TypingIndicatorViewModel

class TypingIndicatorViewModel(cid: String, chatClient: ChatClient = ChatClient.instance(), messageId: String? = null) : ViewModel

ViewModel used by TypingIndicatorView. It is responsible for updating the state of users who are currently typing.

Parameters

cid

The full channel id, i.e. "messaging:123".

chatClient

The main entry point for all low-level chat operations.

messageId

The id of a message we wish to scroll to in messages list. Used to control the number of channel queries executed on screen initialization.

Constructors

Link copied to clipboard
constructor(cid: String, chatClient: ChatClient = ChatClient.instance(), messageId: String? = null)

Properties

Link copied to clipboard

A list of users who are currently typing.

Inherited functions

Link copied to clipboard
Link copied to clipboard

Binds TypingIndicatorView with TypingIndicatorViewModel, updating the view's state based on data provided by the ViewModel.