Class QuotedAttachmentFactoryManager
-
- All Implemented Interfaces:
public final class QuotedAttachmentFactoryManagerA manager for registered quoted attachment factories.
-
-
Constructor Summary
Constructors Constructor Description QuotedAttachmentFactoryManager(List<QuotedAttachmentFactory> quotedAttachmentFactories)
-
Method Summary
Modifier and Type Method Description final BooleancanHandle(Message message)Checks if any QuotedAttachmentFactory can consume attachments from the given message. final UnitcreateAndAddQuotedView(Message message, ViewGroup parent)Create and add a view for the quoted attachments. -
-
Constructor Detail
-
QuotedAttachmentFactoryManager
QuotedAttachmentFactoryManager(List<QuotedAttachmentFactory> quotedAttachmentFactories)
-
-
Method Detail
-
canHandle
final Boolean canHandle(Message message)
Checks if any QuotedAttachmentFactory can consume attachments from the given message. If there are no quoted message factories that can handle the attachment will default to the AttachmentFactoryes that can.
- Parameters:
message- The quoted message containing attachments that we are going to render.- Returns:
True if there is a factory that can handle the attachments from this quoted message.
-
createAndAddQuotedView
final Unit createAndAddQuotedView(Message message, ViewGroup parent)
Create and add 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.
-
-
-
-