MessageComposerCommandSuggestionItemParams

constructor(command: Command, onCommandSelected: (Command) -> Unit, messageAction: MessageAction? = null)

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.