ChannelInfoViewModel

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

Parameters

cid

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

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.