Package 

Class MessageInputKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit MessageInput(MessageComposerState messageComposerState, Modifier modifier, Function1<String, Unit> onValueChange, Function1<Attachment, Unit> onAttachmentRemoved, Function0<Unit> onCancelAction, Function1<LinkPreview, Unit> onLinkPreviewClick, Function0<Unit> onCancelLinkPreviewClick, Function2<String, List<Attachment>, Unit> onSendClick, String sendActionLabel, String saveActionLabel, Function1<Boolean, Unit> onAlsoSendToChannelChange, AudioRecordingActions recordingActions, Function0<Unit> onActiveCommandDismiss) Input field for the Messages/Conversation screen.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • MessageInput

         final static Unit MessageInput(MessageComposerState messageComposerState, Modifier modifier, Function1<String, Unit> onValueChange, Function1<Attachment, Unit> onAttachmentRemoved, Function0<Unit> onCancelAction, Function1<LinkPreview, Unit> onLinkPreviewClick, Function0<Unit> onCancelLinkPreviewClick, Function2<String, List<Attachment>, Unit> onSendClick, String sendActionLabel, String saveActionLabel, Function1<Boolean, Unit> onAlsoSendToChannelChange, AudioRecordingActions recordingActions, Function0<Unit> onActiveCommandDismiss)

        Input field for the Messages/Conversation screen. Allows label customization, as well as handlers when the input changes.

        Parameters:
        messageComposerState - The state of the input.
        modifier - Modifier for styling.
        onValueChange - Handler when the value changes.
        onAttachmentRemoved - Handler when the user removes a selected attachment.
        onCancelAction - Handler when the cancel action is clicked.
        onLinkPreviewClick - Handler when a link preview is clicked.
        onCancelLinkPreviewClick - Handler when the cancel link preview button is clicked.
        onSendClick - Handler when the send button is clicked.
        sendActionLabel - Semantic / accessibility label for onSendClick when sending a new message.
        saveActionLabel - Semantic / accessibility label for onSendClick when saving an edit.
        onAlsoSendToChannelChange - Handler when the "Also send to channel" checkbox is changed.
        recordingActions - The AudioRecordingActions to be applied to the input.
        onActiveCommandDismiss - Called when the user taps the dismiss button on the command chip.