Interface QuotedAttachmentFactory

  • All Implemented Interfaces:

    
    public interface QuotedAttachmentFactory
    
                        

    Represents a handler that can handle quoted attachments of certain type and create views for them.

    • 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
    • Method Summary

      Modifier and Type Method Description
      abstract Boolean canHandle(Message message) Checks if this QuotedAttachmentFactory can consume quoted attachments from the given message.
      abstract View generateQuotedAttachmentView(Message message, ViewGroup parent) Create a view for the quoted attachments.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • canHandle

         abstract Boolean canHandle(Message message)

        Checks if this QuotedAttachmentFactory can consume quoted attachments from the given message.

        Parameters:
        message - The message containing custom quoted attachments that we are going to render.
        Returns:

        True if the factory can handle the quoted attachments from this quoted message.

      • generateQuotedAttachmentView

         abstract View generateQuotedAttachmentView(Message message, ViewGroup parent)

        Create a view for the quoted attachments.

        Parameters:
        message - The message containing attachments that we are going to render.
        parent - The parent View where the attachment content view is supposed to be placed.
        Returns:

        A quoted attachment view to be placed inside the quoted message.