Class FallbackQuotedAttachmentMessageFactory
-
- All Implemented Interfaces:
-
io.getstream.chat.android.ui.feature.messages.list.adapter.viewholder.attachment.QuotedAttachmentFactory
public final class FallbackQuotedAttachmentMessageFactory implements QuotedAttachmentFactory
Factory for attachments that the SDK falls back when all the other QuotedAttachmentFactory don't support the attachment type. It simply shows a file icon with the attachment title.
-
-
Constructor Summary
Constructors Constructor Description FallbackQuotedAttachmentMessageFactory()
-
Method Summary
Modifier and Type Method Description BooleancanHandle(Message message)ViewgenerateQuotedAttachmentView(Message message, ViewGroup parent)Generates a DefaultQuotedAttachmentView to render the attachment. -
-
Method Detail
-
canHandle
Boolean canHandle(Message message)
- Parameters:
message- The quoted message with the attachments we wish to render.- Returns:
If the factory can handle the given quoted message attachment or not.
-
generateQuotedAttachmentView
View generateQuotedAttachmentView(Message message, ViewGroup parent)
Generates a DefaultQuotedAttachmentView to render the attachment.
- Parameters:
message- The quoted message holding the attachments.parent- The parent ViewGroup in which the attachment will be rendered.- Returns:
DefaultQuotedAttachmentView that will be rendered inside the quoted message.
-
-
-
-