MessageComposerController
constructor(channelCid: String, chatClient: ChatClient = ChatClient.instance(), channelState: StateFlow<ChannelState?>, mediaRecorder: StreamMediaRecorder, userLookupHandler: UserLookupHandler, fileToUri: (File) -> String, config: MessageComposerController.Config = Config(), globalState: Flow<GlobalState> = chatClient.globalStateFlow, savedStateHandle: SavedStateHandle = SavedStateHandle())
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.
savedStateHandle
Handle used to persist and restore picker selections and edit-mode state across process death (e.g. caused by opening the system file picker while editing a message).