Package 

Class AttachmentsPickerImagesTabFactory

  • All Implemented Interfaces:
    io.getstream.chat.android.compose.ui.messages.attachments.factory.AttachmentsPickerTabFactory

    
    public final class AttachmentsPickerImagesTabFactory
     implements AttachmentsPickerTabFactory
                        

    Holds the information required to add support for "images" tab in the attachment picker.

    • Constructor Detail

      • AttachmentsPickerImagesTabFactory

        AttachmentsPickerImagesTabFactory()
    • Method Detail

      • PickerTabIcon

        @Composable() Unit PickerTabIcon(Boolean isEnabled, Boolean isSelected)

        Emits an image 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 images 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.