-
public final class AttachmentsPickerKt
-
-
Method Summary
Modifier and Type Method Description final static UnitAttachmentsPicker(AttachmentsPickerViewModel attachmentsPickerViewModel, Function1<List<Attachment>, Unit> onAttachmentsSelected, Function2<Integer, AttachmentsPickerMode, Unit> onTabClick, Function1<AttachmentPickerAction, Unit> onAttachmentPickerAction, Function0<Unit> onDismiss, Modifier modifier, List<AttachmentsPickerTabFactory> tabFactories, Shape shape, MessageMode messageMode)Represents the bottom bar UI that allows users to pick attachments. -
-
Method Detail
-
AttachmentsPicker
@Composable() final static Unit AttachmentsPicker(AttachmentsPickerViewModel attachmentsPickerViewModel, Function1<List<Attachment>, Unit> onAttachmentsSelected, Function2<Integer, AttachmentsPickerMode, Unit> onTabClick, Function1<AttachmentPickerAction, Unit> onAttachmentPickerAction, Function0<Unit> onDismiss, Modifier modifier, List<AttachmentsPickerTabFactory> tabFactories, Shape shape, MessageMode messageMode)
Represents the bottom bar UI that allows users to pick attachments. The picker renders its tabs based on the tabFactories parameter. Out of the box we provide factories for images, files and media capture tabs.
- Parameters:
attachmentsPickerViewModel- ViewModel that loads the images or files and persists which items have been selected.onAttachmentsSelected- Handler when attachments are selected and confirmed by the user.onAttachmentPickerAction- A lambda that will be invoked when an action is happened.onDismiss- Handler when the user dismisses the UI.modifier- Modifier for styling.tabFactories- The list of attachment picker tab factories.shape- The shape of the dialog.messageMode- The message mode, used to determine if the default "Polls" tab is enabled.
-
-
-
-