Class UnsupportedAttachmentFactory
-
- All Implemented Interfaces:
-
io.getstream.chat.android.ui.feature.messages.list.adapter.viewholder.attachment.AttachmentFactory
public final class UnsupportedAttachmentFactory implements AttachmentFactory
Fallback factory for unsupported attachment types.
-
-
Constructor Summary
Constructors Constructor Description UnsupportedAttachmentFactory()
-
Method Summary
Modifier and Type Method Description BooleancanHandle(Message message)Checks if the message contains unsupported attachments. InnerAttachmentViewHoldercreateViewHolder(Message message, MessageListListeners listeners, ViewGroup parent)Creates fallback UI that represents unsupported attachments. -
-
Method Detail
-
canHandle
Boolean canHandle(Message message)
Checks if the message contains unsupported attachments.
- Parameters:
message- The message containing custom attachments that we are going to render.- Returns:
True it the message contains unsupported attachment.
-
createViewHolder
InnerAttachmentViewHolder createViewHolder(Message message, MessageListListeners listeners, ViewGroup parent)
Creates fallback UI that represents unsupported attachments.
- Parameters:
message- The message containing custom attachments that we are going to render.listeners- MessageListListenerContainer with listeners for the message list.parent- The parent View where the attachment content view is supposed to be placed.- Returns:
An inner ViewHolder with the fallback attachment content view.
-
-
-
-