TypingIndicatorViewModelFactory

class TypingIndicatorViewModelFactory(cid: String, chatClient: ChatClient = ChatClient.instance(), messageId: String? = null) : ViewModelProvider.Factory

A ViewModel factory for TypingIndicatorViewModel.

Parameters

cid

The channel id in the format messaging:123.

chatClient

The ChatClient instance.

messageId

The id of the message we wish to focus to. Used to limit the number of channel queries as well.

See also

Constructors

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

Types

Link copied to clipboard
class Builder constructor

Functions

Link copied to clipboard
open override fun <T : ViewModel> create(modelClass: Class<T>): T

Inherited functions

Link copied to clipboard
open fun <T : ViewModel> create(modelClass: Class<T>, extras: CreationExtras): T
open fun <T : ViewModel> create(modelClass: KClass<T>, extras: CreationExtras): T