open class MessageSentViewHolder : ViewHolder, OnLongClickListener
View Holder for message received from other user, it holds reference to frequent update views and provides helper method to bind data information onto views
<init> |
Constructor method to initialised MessageSentViewHolder MessageSentViewHolder(itemView: View) |
tvContent |
var tvContent: TextView! |
tvDate |
var tvDate: TextView! |
tvTime |
var tvTime: TextView! |
bind |
helper method to update respective view based on data pass over open fun bind(msg: ChatMessage!, showDate: Boolean): Unit |
onLongClick |
catch user long click event, and update observer via open fun onLongClick(view: View!): Boolean |