ChannelInfoViewModel

class ChannelInfoViewModel(cid: String, copyToClipboardHandler: CopyToClipboardHandler, optionFilter: (option: ChannelInfoViewState.Content.Option) -> Boolean = { true }, controllerProvider: ViewModel.() -> ChannelInfoViewController = { ChannelInfoViewController( cid = cid, scope = viewModelScope, copyToClipboardHandler = copyToClipboardHandler, optionFilter = optionFilter, ) }) : ViewModel

ViewModel for managing channel information and its actions.

Parameters

cid

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

copyToClipboardHandler

The handler for copying text to the clipboard.

optionFilter

A filter function for channel options, allowing customization of which options are displayed. Defaults to a function that returns true for all options.

controllerProvider

The provider for ChannelInfoViewController.

Constructors

Link copied to clipboard
constructor(cid: String, copyToClipboardHandler: CopyToClipboardHandler, optionFilter: (option: ChannelInfoViewState.Content.Option) -> Boolean = { true }, controllerProvider: ViewModel.() -> ChannelInfoViewController = { ChannelInfoViewController( cid = cid, scope = viewModelScope, copyToClipboardHandler = copyToClipboardHandler, optionFilter = optionFilter, ) })

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
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