Class AttachmentPreviewFactoryManager

    • Constructor Detail

      • AttachmentPreviewFactoryManager

        AttachmentPreviewFactoryManager(List<AttachmentPreviewFactory> attachmentPreviewFactories, FallbackAttachmentPreviewFactory fallbackAttachmentPreviewFactory)
        Parameters:
        attachmentPreviewFactories - The list of ViewHolder factories for attachment preview items.
        fallbackAttachmentPreviewFactory - The fallback factory that will be used in case there are no other factories that can handle the attachment.
      • AttachmentPreviewFactoryManager

        AttachmentPreviewFactoryManager(List<AttachmentPreviewFactory> attachmentPreviewFactories)
        Parameters:
        attachmentPreviewFactories - The list of ViewHolder factories for attachment preview items.
      • AttachmentPreviewFactoryManager

        AttachmentPreviewFactoryManager()
    • Method Detail

      • getItemViewType

         final Integer getItemViewType(Attachment attachment)

        Finds the first factory that is capable of displaying the given attachment and return a view type associated with the factory.

        Parameters:
        attachment - The attachment to display.