ChannelInfoViewModel

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

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.