MessageComposerController

constructor(channelCid: String, chatClient: ChatClient = ChatClient.instance(), channelState: StateFlow<ChannelState?>, mediaRecorder: StreamMediaRecorder, userLookupHandler: UserLookupHandler, fileToUri: (File) -> String, config: MessageComposerController.Config = MessageComposerController.Config(), globalState: Flow<GlobalState> = chatClient.globalStateFlow)

Parameters

channelCid

The CID of the channel we're chatting in.

chatClient

The client used to communicate to the API.

channelState

The current state of the channel.

mediaRecorder

The media recorder used to record audio messages.

userLookupHandler

The handler used to lookup users for mentions.

fileToUri

The function used to convert a file to a URI.

config

The configuration for the message composer.

globalState

A flow emitting the current GlobalState.