-
public class AttachmentPickerActions.Companion
-
-
Field Summary
Fields Modifier and Type Field Description private final AttachmentPickerActionsNonepublic final static AttachmentPickerActions.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final AttachmentPickerActionspickerDefaults(AttachmentsPickerViewModel attachmentsPickerViewModel)Lightweight defaults suitable for standalone AttachmentPicker usage without a composer. final AttachmentPickerActionsdefaultActions(AttachmentsPickerViewModel attachmentsPickerViewModel, MessageComposerViewModel composerViewModel)Default implementation wiring both the picker and composer view models. final AttachmentPickerActionsgetNone()No-op implementation of AttachmentPickerActions. -
-
Method Detail
-
pickerDefaults
final AttachmentPickerActions pickerDefaults(AttachmentsPickerViewModel attachmentsPickerViewModel)
Lightweight defaults suitable for standalone AttachmentPicker usage without a composer.
Handles picker-level concerns only: toggling the selection index and dismissing the picker. Attachment submission, poll, and command actions are no-ops.
- Parameters:
attachmentsPickerViewModel- The AttachmentsPickerViewModel that drives picker state.
-
defaultActions
final AttachmentPickerActions defaultActions(AttachmentsPickerViewModel attachmentsPickerViewModel, MessageComposerViewModel composerViewModel)
Default implementation wiring both the picker and composer view models.
Handles item selection, attachment submission, poll creation, command selection, and dismissal. Use this when the AttachmentPicker is paired with a MessageComposerViewModel.
- Parameters:
attachmentsPickerViewModel- The AttachmentsPickerViewModel that drives picker state.composerViewModel- The MessageComposerViewModel that manages the attachment list for the message.
-
getNone
final AttachmentPickerActions getNone()
No-op implementation of AttachmentPickerActions.
-
-
-
-