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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Boolean canHandle(Message message) Checks if the message contains unsupported attachments.
      InnerAttachmentViewHolder createViewHolder(Message message, MessageListListeners listeners, ViewGroup parent) Creates fallback UI that represents unsupported attachments.
      • Methods inherited from class io.getstream.chat.android.ui.feature.messages.list.adapter.viewholder.attachment.AttachmentFactory

        createViewHolder
      • Methods inherited from class java.lang.Object

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

      • UnsupportedAttachmentFactory

        UnsupportedAttachmentFactory()
    • 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.