Interface AttachmentPreviewFactory

  • All Implemented Interfaces:

    
    public interface AttachmentPreviewFactory
    
                        

    A factory responsible for creating attachment preview ViewHolders.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • canHandle

         abstract 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.
        Returns:

        True if the factory is able to provide a preview for the given Attachment.