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,
)
})