Package 

Class MessageComposerController


  • 
    public final class MessageComposerController
    
                        

    Controller responsible for handling the composing and sending of messages.

    It acts as a central place for both the core business logic and state required to create and send messages, handle attachments, message actions and more.

    If you require more state and business logic, compose this Controller with your code and apply the necessary changes.

    • Constructor Detail

      • MessageComposerController

        MessageComposerController(String channelCid, ChatClient chatClient, StateFlow<ChannelState> channelState, StreamMediaRecorder mediaRecorder, UserLookupHandler userLookupHandler, Function1<File, String> fileToUri, MessageComposerController.Config config, Flow<GlobalState> globalState, ComposerStateSaver stateSaver)
        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.
        stateSaver - Store for persisting composer state across process death.