-
public final class AttachmentCommandPickerParamsParameters for ChatComponentFactory.AttachmentCommandPicker.
-
-
Field Summary
Fields Modifier and Type Field Description private final CommandPickerModepickerModeprivate final List<Command>commandsprivate final Function1<Command, Unit>onCommandSelectedprivate final MessageActionmessageAction
-
Constructor Summary
Constructors Constructor Description AttachmentCommandPickerParams(CommandPickerMode pickerMode, List<Command> commands, Function1<Command, Unit> onCommandSelected, MessageAction messageAction)
-
Method Summary
Modifier and Type Method Description final CommandPickerModegetPickerMode()final List<Command>getCommands()final Function1<Command, Unit>getOnCommandSelected()final MessageActiongetMessageAction()-
-
Constructor Detail
-
AttachmentCommandPickerParams
AttachmentCommandPickerParams(CommandPickerMode pickerMode, List<Command> commands, Function1<Command, Unit> onCommandSelected, MessageAction messageAction)
- Parameters:
pickerMode- The command picker mode.commands- Available commands.onCommandSelected- Invoked when a command is tapped, regardless of messageAction.messageAction- The composer action currently active; drives each item's enabled state.
-
-
Method Detail
-
getPickerMode
final CommandPickerMode getPickerMode()
-
getCommands
final List<Command> getCommands()
-
getOnCommandSelected
final Function1<Command, Unit> getOnCommandSelected()
-
getMessageAction
final MessageAction getMessageAction()
-
-
-
-