-
public final class AttachmentTypePickerParamsParameters for ChatComponentFactory.AttachmentTypePicker.
-
-
Field Summary
Fields Modifier and Type Field Description private final Channelchannelprivate final MessageModemessageModeprivate final AttachmentPickerModeselectedModeprivate final Function1<AttachmentPickerMode, Unit>onModeSelectedprivate final Function1<RowScope, Unit>trailingContent
-
Constructor Summary
Constructors Constructor Description AttachmentTypePickerParams(Channel channel, MessageMode messageMode, AttachmentPickerMode selectedMode, Function1<AttachmentPickerMode, Unit> onModeSelected, Function1<RowScope, Unit> trailingContent)
-
Method Summary
Modifier and Type Method Description final ChannelgetChannel()final MessageModegetMessageMode()final AttachmentPickerModegetSelectedMode()final Function1<AttachmentPickerMode, Unit>getOnModeSelected()final Function1<RowScope, Unit>getTrailingContent()-
-
Constructor Detail
-
AttachmentTypePickerParams
AttachmentTypePickerParams(Channel channel, MessageMode messageMode, AttachmentPickerMode selectedMode, Function1<AttachmentPickerMode, Unit> onModeSelected, Function1<RowScope, Unit> trailingContent)
- Parameters:
channel- Used to check channel capabilities.messageMode- Used to filter modes.selectedMode- The currently active mode.onModeSelected- Called when user taps a tab.trailingContent- Slot for custom content after the mode buttons.
-
-
Method Detail
-
getChannel
final Channel getChannel()
-
getMessageMode
final MessageMode getMessageMode()
-
getSelectedMode
final AttachmentPickerMode getSelectedMode()
-
getOnModeSelected
final Function1<AttachmentPickerMode, Unit> getOnModeSelected()
-
getTrailingContent
final Function1<RowScope, Unit> getTrailingContent()
-
-
-
-