MessageComposerCommandSuggestionItemParams
data class MessageComposerCommandSuggestionItemParams(val command: Command, val onCommandSelected: (Command) -> Unit, val messageAction: MessageAction? = null)
Parameters for ChatComponentFactory.MessageComposerCommandSuggestionItem.
Parameters
command
The command for which the suggestion is rendered.
onCommandSelected
Invoked when the item is tapped, regardless of the derived enabled state. The receiver decides how to respond (e.g. dispatch the command when available, surface feedback when not).
messageAction
The composer action currently active; drives the item's enabled visual state. null treats every command as enabled. Override the factory to apply a custom rule.
Constructors
Link copied to clipboard
constructor(command: Command, onCommandSelected: (Command) -> Unit, messageAction: MessageAction? = null)