Class GiphyAttachmentViewHolder

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final <Error class: unknown class> binding
      public final View itemView
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final <Error class: unknown class> getBinding()
      View messageContainerView() Returns the Message container that we can use to anchor UI based on its size and position.
      Unit bindData(MessageListItem.MessageItem data, MessageListItemPayloadDiff diff) Binds the data required to represent a Giphy attachment.
      • Methods inherited from class io.getstream.chat.android.ui.feature.messages.list.adapter.BaseMessageItemViewHolder

        onAttachedToWindow, onDetachedFromWindow, unbind
      • Methods inherited from class androidx.recyclerview.widget.RecyclerView.ViewHolder

        getAbsoluteAdapterPosition, getAdapterPosition, getBindingAdapter, getBindingAdapterPosition, getItemId, getItemViewType, getLayoutPosition, getOldPosition, getPosition, isRecyclable, setIsRecyclable, toString
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • getBinding

         final <Error class: unknown class> getBinding()
      • messageContainerView

         View messageContainerView()

        Returns the Message container that we can use to anchor UI based on its size and position.

      • bindData

         Unit bindData(MessageListItem.MessageItem data, MessageListItemPayloadDiff diff)

        Binds the data required to represent a Giphy attachment. Shows the Giphy, applies decorations and the transformations for text and the container shape.

        Loads the Giphy once things are set up.

        Parameters:
        data - The data that holds all the information required to show a Giphy.
        diff - The difference from the previous draw.