MessageComposerController
constructor(channelCid: String, chatClient: ChatClient = ChatClient.instance(), channelState: StateFlow<ChannelState?>, mediaRecorder: StreamMediaRecorder, userLookupHandler: UserLookupHandler, fileToUri: (File) -> String, maxAttachmentCount: Int = AttachmentConstants.MAX_ATTACHMENTS_COUNT, isLinkPreviewEnabled: Boolean = false)
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.
maxAttachmentCount
The maximum number of attachments that can be sent in a single message.
isLinkPreviewEnabled
If the link preview is enabled in the channel.