Class InnerAttachmentViewHolder
-
- All Implemented Interfaces:
public abstract class InnerAttachmentViewHolderAn inner ViewHolder for custom attachments within message ViewHolder. Follows the lifecycle of the outer message ViewHolder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classInnerAttachmentViewHolder.Companion
-
Constructor Summary
Constructors Constructor Description InnerAttachmentViewHolder(View itemView)
-
Method Summary
Modifier and Type Method Description final ContextgetContext()final ViewgetItemView()UnitonBindViewHolder(Message message)Called when RecyclerView binds the parent message ViewHolder. UnitonUnbindViewHolder()Called when RecyclerView recycles the parent message ViewHolder. UnitonViewAttachedToWindow()Called when a view in this ViewHolder has been attached to a window. UnitonViewDetachedFromWindow()Called when a view in this ViewHolder has been detached from its window. -
-
Constructor Detail
-
InnerAttachmentViewHolder
InnerAttachmentViewHolder(View itemView)
- Parameters:
itemView- The view that this ViewHolder controls.
-
-
Method Detail
-
getContext
final Context getContext()
-
getItemView
final View getItemView()
-
onBindViewHolder
Unit onBindViewHolder(Message message)
Called when RecyclerView binds the parent message ViewHolder.
- Parameters:
message- The message whose attachments will be displayed.
-
onUnbindViewHolder
Unit onUnbindViewHolder()
Called when RecyclerView recycles the parent message ViewHolder.
-
onViewAttachedToWindow
Unit onViewAttachedToWindow()
Called when a view in this ViewHolder has been attached to a window.
-
onViewDetachedFromWindow
Unit onViewDetachedFromWindow()
Called when a view in this ViewHolder has been detached from its window.
-
-
-
-