ChannelInfoViewController

constructor(cid: String, scope: CoroutineScope, 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), globalState: Flow<GlobalState> = chatClient.globalStateFlow)

Parameters

cid

The unique identifier of the channel.

scope

The CoroutineScope used for launching coroutines.

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.