ChannelInfoViewController

constructor(cid: String, scope: CoroutineScope, copyToClipboardHandler: CopyToClipboardHandler, optionFilter: (option: ChannelInfoViewState.Content.Option) -> Boolean = { true }, chatClient: ChatClient = ChatClient.instance(), channelState: Flow<ChannelState> = chatClient .watchChannelAsState(cid = cid, messageLimit = 0, coroutineScope = scope) .filterNotNull(), channelClient: ChannelClient = chatClient.channel(cid))

Parameters

cid

The unique identifier of the channel.

scope

The CoroutineScope used for launching coroutines.

copyToClipboardHandler

The CopyToClipboardHandler used 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.

chatClient

The ChatClient instance used for interacting with the chat API.

channelState

A Flow representing the state of the channel.

channelClient

The ChannelClient instance for performing channel-specific operations.