-
public final class AttachmentPickerContentParamsParameters for ChatComponentFactory.AttachmentPickerContent.
-
-
Field Summary
Fields Modifier and Type Field Description private final AttachmentPickerModepickerModeprivate final List<Command>commandsprivate final List<AttachmentPickerItemState>attachmentsprivate final Function0<Unit>onLoadAttachmentsprivate final Function1<List<Uri>, Unit>onUrisSelectedprivate final AttachmentPickerActionsactionsprivate final Function1<List<AttachmentMetaData>, Unit>onAttachmentsSubmittedprivate final MessageActionmessageAction
-
Constructor Summary
Constructors Constructor Description AttachmentPickerContentParams(AttachmentPickerMode pickerMode, List<Command> commands, List<AttachmentPickerItemState> attachments, Function0<Unit> onLoadAttachments, Function1<List<Uri>, Unit> onUrisSelected, AttachmentPickerActions actions, Function1<List<AttachmentMetaData>, Unit> onAttachmentsSubmitted, MessageAction messageAction)
-
Method Summary
Modifier and Type Method Description final AttachmentPickerModegetPickerMode()final List<Command>getCommands()final List<AttachmentPickerItemState>getAttachments()final Function0<Unit>getOnLoadAttachments()final Function1<List<Uri>, Unit>getOnUrisSelected()final AttachmentPickerActionsgetActions()final Function1<List<AttachmentMetaData>, Unit>getOnAttachmentsSubmitted()final MessageActiongetMessageAction()-
-
Constructor Detail
-
AttachmentPickerContentParams
AttachmentPickerContentParams(AttachmentPickerMode pickerMode, List<Command> commands, List<AttachmentPickerItemState> attachments, Function0<Unit> onLoadAttachments, Function1<List<Uri>, Unit> onUrisSelected, AttachmentPickerActions actions, Function1<List<AttachmentMetaData>, Unit> onAttachmentsSubmitted, MessageAction messageAction)
- Parameters:
pickerMode- The currently active mode.commands- Available slash commands.attachments- Current attachment items.onLoadAttachments- Called to trigger loading attachment metadata.onUrisSelected- Called with URIs from a system picker.actions- The attachment picker actions.onAttachmentsSubmitted- Called when attachments are ready.messageAction- The composer action currently active; drives per-command enabled state in the command section.
-
-
Method Detail
-
getPickerMode
final AttachmentPickerMode getPickerMode()
-
getCommands
final List<Command> getCommands()
-
getAttachments
final List<AttachmentPickerItemState> getAttachments()
-
getOnLoadAttachments
final Function0<Unit> getOnLoadAttachments()
-
getOnUrisSelected
final Function1<List<Uri>, Unit> getOnUrisSelected()
-
getActions
final AttachmentPickerActions getActions()
-
getOnAttachmentsSubmitted
final Function1<List<AttachmentMetaData>, Unit> getOnAttachmentsSubmitted()
-
getMessageAction
final MessageAction getMessageAction()
-
-
-
-