-
public final class MessageComposerCommandSuggestionItemParamsParameters for ChatComponentFactory.MessageComposerCommandSuggestionItem.
-
-
Field Summary
Fields Modifier and Type Field Description private final Commandcommandprivate final Function1<Command, Unit>onCommandSelectedprivate final MessageActionmessageAction
-
Constructor Summary
Constructors Constructor Description MessageComposerCommandSuggestionItemParams(Command command, Function1<Command, Unit> onCommandSelected, MessageAction messageAction)
-
Method Summary
Modifier and Type Method Description final CommandgetCommand()final Function1<Command, Unit>getOnCommandSelected()final MessageActiongetMessageAction()-
-
Constructor Detail
-
MessageComposerCommandSuggestionItemParams
MessageComposerCommandSuggestionItemParams(Command command, Function1<Command, Unit> onCommandSelected, MessageAction messageAction)
- Parameters:
command- The command for which the suggestion is rendered.onCommandSelected- Invoked when the item is tapped, regardless of the derived enabled state.messageAction- The composer action currently active; drives the item's enabled visual state.
-
-
Method Detail
-
getCommand
final Command getCommand()
-
getOnCommandSelected
final Function1<Command, Unit> getOnCommandSelected()
-
getMessageAction
final MessageAction getMessageAction()
-
-
-
-