public class RecallNotificationMessageItemProvider extends BaseNotificationMessageItemProvider<RecallNotificationMessage>
Constructor and Description |
---|
RecallNotificationMessageItemProvider() |
Modifier and Type | Method and Description |
---|---|
protected void |
bindMessageContentViewHolder(ViewHolder holder,
ViewHolder parentHolder,
RecallNotificationMessage content,
UiMessage uiMessage,
int position,
java.util.List<UiMessage> list,
IViewProviderListener<UiMessage> listener) |
android.text.Spannable |
getSummarySpannable(android.content.Context context,
RecallNotificationMessage data)
在会话列表页某条会话最后一条消息为该类型消息时,会话里需要展示的内容。
比如: 图片消息在会话里需要展示为"图片",那返回对应的字符串资源即可。
|
protected boolean |
isMessageViewType(MessageContent messageContent) |
protected ViewHolder |
onCreateMessageContentViewHolder(android.view.ViewGroup parent,
int viewType) |
bindViewHolder, isItemViewType, isSummaryType, onCreateViewHolder, showSummaryWithName
public RecallNotificationMessageItemProvider()
protected ViewHolder onCreateMessageContentViewHolder(android.view.ViewGroup parent, int viewType)
onCreateMessageContentViewHolder
in class BaseNotificationMessageItemProvider<RecallNotificationMessage>
protected void bindMessageContentViewHolder(ViewHolder holder, ViewHolder parentHolder, RecallNotificationMessage content, UiMessage uiMessage, int position, java.util.List<UiMessage> list, IViewProviderListener<UiMessage> listener)
bindMessageContentViewHolder
in class BaseNotificationMessageItemProvider<RecallNotificationMessage>
protected boolean isMessageViewType(MessageContent messageContent)
isMessageViewType
in class BaseNotificationMessageItemProvider<RecallNotificationMessage>
public android.text.Spannable getSummarySpannable(android.content.Context context, RecallNotificationMessage data)
IConversationSummaryProvider
context
- 上下文data
- 消息内容