Interface QuotedAttachmentFactory
-
- All Implemented Interfaces:
public interface QuotedAttachmentFactoryRepresents a handler that can handle quoted attachments of certain type and create views for them.
-
-
Method Summary
Modifier and Type Method Description abstract BooleancanHandle(Message message)Checks if this QuotedAttachmentFactory can consume quoted attachments from the given message. abstract ViewgenerateQuotedAttachmentView(Message message, ViewGroup parent)Create a view for the quoted attachments. -
-
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.
-
-
-
-