Message Input
fun MessageInput(inputValue: String, onInputValueChange: (String) -> Unit, modifier: Modifier = Modifier, messageInputMode: MessageInputMode = MessageInputMode.Default, isActionButtonShown: Boolean = true, enabled: Boolean = true, onEditModeSaveClick: (messageId: Long) -> Unit = {}, onEditModeCancelClick: () -> Unit = {}, onMenuClick: () -> Unit = {}, onActionClick: () -> Unit = {})
Represents the message input component.
Since
1.0.0
Parameters
input Value
The text of the input.
on Input Value Change
The handler for when the input value changes.
modifier
The modifier to be applied to the view.
message Input Mode
The MessageInputMode of the input.
is Action Button Shown
The visibility of the action button.
enabled
The enabled state of the input.
on Edit Mode Save Click
The handler for when the edit mode save button is clicked.
on Edit Mode Cancel Click
The handler for when the edit mode cancel button is clicked.
on Menu Click
The handler for when the menu button is clicked.
on Action Click
The handler for when the action button is clicked.