ChannelHeaderViewModel

class ChannelHeaderViewModel(cid: String, controllerProvider: ViewModel.() -> ChannelHeaderViewController = { ChannelHeaderViewController(cid = cid, scope = viewModelScope) }) : ViewModel

ViewModel for managing the state of the channel header.

Parameters

cid

The full channel identifier (e.g., "messaging:123").

controllerProvider

The provider for ChannelHeaderViewController.

Constructors

Link copied to clipboard
constructor(cid: String, controllerProvider: ViewModel.() -> ChannelHeaderViewController = { ChannelHeaderViewController(cid = cid, scope = viewModelScope) })

Properties

Link copied to clipboard

Inherited functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard