Package 

Class FallbackAttachmentPreviewFactory

    • Constructor Detail

      • FallbackAttachmentPreviewFactory

        FallbackAttachmentPreviewFactory()
    • Method Detail

      • canHandle

         Boolean canHandle(Attachment attachment)

        Checks if the factory can create a preview ViewHolder for this attachment.

        Parameters:
        attachment - The attachment we want to show a preview for.
      • onCreateViewHolder

         AttachmentPreviewViewHolder onCreateViewHolder(ViewGroup parentView, Function1<Attachment, Unit> attachmentRemovalListener, MessageComposerViewStyle style)

        Creates and instantiates a new instance of FallbackAttachmentPreviewViewHolder.

        Parameters:
        parentView - The parent container.
        attachmentRemovalListener - Click listener for the remove attachment button.
        style - Used to style the factory.