-
- All Implemented Interfaces:
-
io.getstream.chat.android.compose.ui.messages.attachments.factory.AttachmentsPickerTabFactory
public final class AttachmentsPickerFilesTabFactory implements AttachmentsPickerTabFactory
Holds the information required to add support for "files" tab in the attachment picker.
-
-
Field Summary
Fields Modifier and Type Field Description private final AttachmentsPickerModeattachmentsPickerMode
-
Constructor Summary
Constructors Constructor Description AttachmentsPickerFilesTabFactory()
-
Method Summary
Modifier and Type Method Description AttachmentsPickerModegetAttachmentsPickerMode()UnitPickerTabIcon(Boolean isEnabled, Boolean isSelected)Emits a file icon for this tab. UnitPickerTabContent(Function1<AttachmentPickerAction, Unit> onAttachmentPickerAction, List<AttachmentPickerItemState> attachments, Function1<List<AttachmentPickerItemState>, Unit> onAttachmentsChanged, Function1<AttachmentPickerItemState, Unit> onAttachmentItemSelected, Function1<List<AttachmentMetaData>, Unit> onAttachmentsSubmitted)Emits content that allows users to pick files in this tab. -
-
Method Detail
-
getAttachmentsPickerMode
AttachmentsPickerMode getAttachmentsPickerMode()
-
PickerTabIcon
@Composable() Unit PickerTabIcon(Boolean isEnabled, Boolean isSelected)
Emits a file icon for this tab.
- Parameters:
isEnabled- If the tab is enabled.isSelected- If the tab is selected.
-
PickerTabContent
@Composable() Unit PickerTabContent(Function1<AttachmentPickerAction, Unit> onAttachmentPickerAction, List<AttachmentPickerItemState> attachments, Function1<List<AttachmentPickerItemState>, Unit> onAttachmentsChanged, Function1<AttachmentPickerItemState, Unit> onAttachmentItemSelected, Function1<List<AttachmentMetaData>, Unit> onAttachmentsSubmitted)
Emits content that allows users to pick files in this tab.
- Parameters:
onAttachmentPickerAction- A lambda that will be invoked when an action is happened.attachments- The list of attachments to display.onAttachmentsChanged- Handler to set the loaded list of attachments to display.onAttachmentItemSelected- Handler when the item selection state changes.onAttachmentsSubmitted- Handler to submit the selected attachments to the message composer.
-
-
-
-